ModelBase Members

The ModelBase type exposes the following members.

Constructors


  Name Description
Protected method ModelBase
Creates a model using the default property bag implementation..

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)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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
Serves as the default hash function.
(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
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(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
Returns a string that represents the current object.
(Inherited from Object.)
Public method Validate
This forces the object to be completely revalidated.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)

Properties


  Name Description
Public property HasErrors
Returns True if there are any errors.
(Inherited from AbstractModelBase.)
Protected property Properties
Returns the underlying property bag
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)

Events


  Name Description
Public event ErrorsChanged
Raised when the errors collection has changed.
(Inherited from AbstractModelBase.)
Public event PropertyChanged
Occurs when a property value changes.
(Inherited from AbstractModelBase.)