AbstractModelBase Members

The AbstractModelBase type exposes the following members.

Constructors


  Name Description
Protected method AbstractModelBase
Initializes a new instance of the AbstractModelBase class.

Methods


  Name Description
Public method AddHandler
Adds a weak event handler.
Public method ClearErrors
Clears the error collections and the HasErrors property
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAllErrors
Returns a collection of all errors (object and property level).
Public method GetErrors()()()()
Returns a collection of object-level errors.
Public method GetErrors(Nullable<(Of <<'(String>)>>))
Returns a collection of property-level errors.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnErrorsChanged(String)
Used to manually invoke the ErrorsChanged event.
Protected method OnValidateObject
Override this method to add imperative validation at the object level.
Protected method OnValidateProperty
Override this method to add imperative validation at the property level.
Public method RemoveHandler
Removes a weak event handler.
Public method ToString (Inherited from Object.)
Public method Validate
This forces the object to be completely revalidated.

Properties


  Name Description
Public property HasErrors
Returns True if there are any errors.

Events


  Name Description
Public event ErrorsChanged
Raised when the errors collection has changed.
Public event PropertyChanged
Occurs when a property value changes.