ModelBase Members
The ModelBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
ModelBase |
Creates a model using the default property bag implementation..
|
Methods
Name | Description | |
---|---|---|
![]() |
AddHandler |
Adds a weak event handler.
(Inherited from AbstractModelBase.) |
![]() |
ClearErrors |
Clears the error collections and the HasErrors property
(Inherited from AbstractModelBase.) |
![]() |
Equals(System.Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
Get<(Of <<'(T>)>>) |
Fetches a value, returning Default(T) if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
GetAllErrors |
Returns a collection of all errors (object and property level).
(Inherited from AbstractModelBase.) |
![]() |
GetDefault<(Of <<'(T>)>>) |
Fetches a value, using the default value it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
GetErrors()()()() |
Returns a collection of object-level errors.
(Inherited from AbstractModelBase.) |
![]() |
GetErrors(Nullable<(Of <<'(String>)>>)) |
Returns a collection of property-level errors.
(Inherited from AbstractModelBase.) |
![]() |
GetHashCode |
Serves as the default hash function. (Inherited from Object.) |
![]() |
GetNew(String) |
Fetches a string value, returning String.Empty if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
GetNew<(Of <<'(T>)>>)(String) |
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
GetNew<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), String) |
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnErrorsChanged |
Used to manually invoke the ErrorsChanged event.
(Inherited from AbstractModelBase.) |
![]() |
OnPropertyChanged |
Triggers the PropertyChanged event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
OnPropertyChanging |
Triggers the PropertyChanging event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
![]() |
OnValidateObject |
Override this method to add imperative validation at the object level.
(Inherited from AbstractModelBase.) |
![]() |
OnValidateProperty |
Override this method to add imperative validation at the property level.
(Inherited from AbstractModelBase.) |
![]() |
RemoveHandler |
Removes a weak event handler.
(Inherited from AbstractModelBase.) |
![]() |
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>)>)>.) |
![]() |
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>)>)>.) |
![]() |
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>)>)>.) |
![]() |
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>)>)>.) |
![]() |
ToString |
Returns a string that represents the current object. (Inherited from Object.) |
![]() |
Validate |
This forces the object to be completely revalidated.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
Properties
Name | Description | |
---|---|---|
![]() |
HasErrors |
Returns True if there are any errors.
(Inherited from AbstractModelBase.) |
![]() |
Properties |
Returns the underlying property bag
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
Events
Name | Description | |
---|---|---|
![]() |
ErrorsChanged |
Raised when the errors collection has changed.
(Inherited from AbstractModelBase.) |
![]() |
PropertyChanged |
Occurs when a property value changes.
(Inherited from AbstractModelBase.) |