ReactiveValidationObject class¶
Attributes: [DebuggerDisplay("ReactiveValidationObject: {HasErrors}")]
Defined in
Namespace: ReactiveUI.Validation.Helpers Assembly: ReactiveUI.Validation.dll Full name: ReactiveUI.Validation.Helpers.ReactiveValidationObject Modifiers: public
Summary¶
View source (opens in a new tab)
Base class for ReactiveObjects that support INotifyDataErrorInfo (opens in a new tab) validation.
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 ReactiveValidationObject
class ReactiveObject
ReactiveObject <|-- ReactiveValidationObject
class IValidatableViewModel {
<<interface>>
}
IValidatableViewModel <|.. ReactiveValidationObject
class INotifyDataErrorInfo {
<<interface>>
}
INotifyDataErrorInfo <|.. ReactiveValidationObject
class IDisposable {
<<interface>>
}
IDisposable <|.. ReactiveValidationObject
Inherits from: ReactiveObject
Implements: IValidatableViewModel, INotifyDataErrorInfo (opens in a new tab), IDisposable (opens in a new tab)
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveValidationObject](# class. |
Properties¶
| Name | Summary |
|---|---|
| HasErrors | Gets a value that indicates whether the entity has validation errors. |
| ValidationContext | Gets the validation context. |
Methods¶
| Name | Summary |
|---|---|
| GetErrors | Returns a collection of error messages, required by the INotifyDataErrorInfo interface. |
| Dispose | Releases unmanaged and - optionally - managed resources. |
| RaiseErrorsChanged | Raises the [ErrorsChanged](# event for the whole object. |
Events¶
| Name | Summary |
|---|---|
| ErrorsChanged | Occurs when the validation errors have changed for a property or for the entire entity. |
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)