ValidationContext class¶
Attributes: [DebuggerDisplay("ValidationContext: {Valid}")]
Defined in
Namespace: ReactiveUI.Validation.Contexts Assembly: ReactiveUI.Validation.dll Full name: ReactiveUI.Validation.Contexts.ValidationContext Modifiers: public
Summary¶
Inherited documentation
These docs were inherited from IValidationComponent.
View source (opens in a new tab)
The overall context for a view model under which validation takes place.
Applies to
net11.0, net11.0-maccatalyst27.2, net11.0-windows10.0.19041, net11.0-android37.0, net11.0-tvos27.2, net11.0-macos27.2, net11.0-ios27.2, net10.0, net10.0-tvos26.0, net10.0-macos26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-ios26.0, net10.0-windows10.0.19041, net48, net47, net471, net472, net481
Class hierarchy
classDiagram
class ValidationContext
class ReactiveObject
ReactiveObject <|-- ValidationContext
class IValidationContext {
<<interface>>
}
IValidationContext <|.. ValidationContext
class IValidationComponent {
<<interface>>
}
IValidationComponent <|.. ValidationContext
class IReactiveObject {
<<interface>>
}
IReactiveObject <|.. ValidationContext
class INotifyPropertyChanged {
<<interface>>
}
INotifyPropertyChanged <|.. ValidationContext
class INotifyPropertyChanging {
<<interface>>
}
INotifyPropertyChanging <|.. ValidationContext
class IEnableLogger {
<<interface>>
}
IEnableLogger <|.. ValidationContext
class IsDisposed {
<<interface>>
}
IsDisposed <|.. ValidationContext
class IDisposable {
<<interface>>
}
IDisposable <|.. ValidationContext
Inherits from: ReactiveObject
Implements: IValidationContext, IValidationComponent, IReactiveObject, INotifyPropertyChanged (opens in a new tab), INotifyPropertyChanging (opens in a new tab), IEnableLogger, IsDisposed, IDisposable (opens in a new tab)
Remarks¶
Contains all of the IValidationComponent instances applicable to the view model.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ValidationContext](# class that uses the current thread scheduler. |
Properties¶
| Name | Summary |
|---|---|
| Valid | Gets an observable for the Valid state. |
| Validations | Gets the list of validations. |
| IsValid | Gets a value indicating whether the validation is currently valid or not. |
| ValidationStatusChange | Gets the observable for validation state changes. |
| Text | Gets the current (optional) validation message. |
| IsDisposed | Gets a value indicating whether this instance is disposed. |
Methods¶
| Name | Summary |
|---|---|
| Add | Adds a validation into the validations collection. |
| Remove | Removes a validation from the validations collection. |
| RemoveMany | Removes many validation components from the validations collection. |
| GetIsValid | Returns if the whole context is valid checking all the validations. |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Inherited members
ReactiveUI.ReactiveObject.SuppressChangeNotificationsReactiveUI.ReactiveObject.AreChangeNotificationsEnabledReactiveUI.ReactiveObject.DelayChangeNotificationsReactiveUI.ReactiveObject.#ctorReactiveUI.ReactiveObject.ChangingReactiveUI.ReactiveObject.ChangedReactiveUI.ReactiveObject.ThrownExceptionsReactiveUI.ReactiveObject.PropertyChangingReactiveUI.ReactiveObject.PropertyChangedSystem.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)