ModelBase Methods

The ModelBase type exposes the following members.

Methods


  Name Description
Public method AddHandler
Adds a weak event handler.
(Inherited from AbstractModelBase.)
Public method ClearErrors
Clears the error collections and the HasErrors property
(Inherited from AbstractModelBase.)
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Protected method Get<(Of <<'(T>)>>)
Fetches a value, returning Default(T) if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method GetAllErrors
Returns a collection of all errors (object and property level).
(Inherited from AbstractModelBase.)
Protected method GetDefault<(Of <<'(T>)>>)
Fetches a value, using the default value it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method GetErrors()()()()
Returns a collection of object-level errors.
(Inherited from AbstractModelBase.)
Public method GetErrors(Nullable<(Of <<'(String>)>>))
Returns a collection of property-level errors.
(Inherited from AbstractModelBase.)
Public method GetHashCode (Inherited from Object.)
Protected method GetNew(String)
Fetches a string value, returning String.Empty if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method GetNew<(Of <<'(T>)>>)(String)
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method GetNew<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), String)
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnErrorsChanged
Used to manually invoke the ErrorsChanged event.
(Inherited from AbstractModelBase.)
Protected method OnPropertyChanged
Triggers the PropertyChanged event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method OnPropertyChanging
Triggers the PropertyChanging event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method OnValidateObject
Override this method to add imperative validation at the object level.
(Inherited from AbstractModelBase.)
Protected method OnValidateProperty
Override this method to add imperative validation at the property level.
(Inherited from AbstractModelBase.)
Public method RemoveHandler
Removes a weak event handler.
(Inherited from AbstractModelBase.)
Protected method Set(Nullable<(Of <<'(Object>)>>), String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method Set<(Of <<'(T>)>>)(T, PropertyChangedEventHandler, String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method Set<(Of <<'(T>)>>)(T, ValueChanged<(Of <<'(T>)>>), String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method Set<(Of <<'(T>)>>)(T, NotifyCollectionChangedEventHandler, String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method ToString (Inherited from Object.)
Public method Validate
This forces the object to be completely revalidated.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)