EditableObjectPropertyBag Members

The EditableObjectPropertyBag type exposes the following members.

Constructors


  Name Description
Public method EditableObjectPropertyBag
Property bag with two-level change tracking capabilities.

Methods


  Name Description
Public method AcceptChanges
Marks all fields as unchanged by storing them in the original values collection.
Public method BeginEdit
This creates a checkpoint using the current values. The checkpoint remains available until EndEdit or CancelEdit is called.
Public method CancelEdit
This reverts all changes to the checkpoint values. CancelEdit is called recursively on any value in the original list.
Public method ChangedProperties
Implementors need to override this to return the indicated value.
(Inherited from ChangeTrackingPropertyBag.)
Public method EndEdit
This removed one level of checkpoint values. EndEdit is called recursively on any value in the list of checkpoint values.
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.)
Public method Get<(Of <<'(T>)>>)
Fetches a value, returning Default(T) if it doesn't exist.
(Inherited from PropertyBagBase.)
Public method GetDefault<(Of <<'(T>)>>)
Fetches a value, using the default value it if it doesn't exist.
(Inherited from PropertyBagBase.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetNew<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), String)
Fetches a value, creating it if it doesn't exist.
(Inherited from PropertyBagBase.)
Public method GetNew<(Of <<'(T>)>>)(String)
Fetches a value, creating it if it doesn't exist.
(Inherited from PropertyBagBase.)
Public method GetPreviousValue
Gets the previous value for the indicated property.
(Inherited from ChangeTrackingPropertyBag.)
Protected method GetPropertyIndex
Gets the index of the property.
(Inherited from PropertyBagBase.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetValue
Implementors need to override this to return the indicated value.
(Inherited from ChangeTrackingPropertyBag.)
Public method IsChangedGraph
Determines whether any objects have unsaved changed in the graph.
(Inherited from ChangeTrackingPropertyBag.)
Public method IsDefined
This property indicates whether or not the associated property was created.
(Inherited from ChangeTrackingPropertyBag.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnRevalidateObject
Triggers the RevalidateObject event.
(Inherited from PropertyBagBase.)
Protected method OnRevalidateProperty
Triggers the RevalidateProperty event.
(Inherited from PropertyBagBase.)
Public method RejectChanges
Replaces the current values collection with the original values collection.
Public method RevalidateAll
Uses the property metadata to trigger validation on all model properties. Then requests validation on the object itself.
(Inherited from PropertyBagBase.)
Public method Set(Nullable<(Of <<'(Object>)>>), PropertySetModes, String, Nullable<(Of <<'(Object>)>>)%)
Implementors need to override this to save the indicated value.
(Inherited from ChangeTrackingPropertyBag.)
Public method Set(Nullable<(Of <<'(Object>)>>), PropertySetModes, 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 PropertyBagBase.)
Public 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 PropertyBagBase.)
Public 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 PropertyBagBase.)
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 PropertyBagBase.)
Public 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 PropertyBagBase.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected method UpdateIsChangedLocal
Updates the IsChangedLocal flag by recomparing all properties.
(Inherited from ChangeTrackingPropertyBag.)

Properties


  Name Description
Public property IsChangedLocal
Returns True if any fields were modified since the last call to AcceptChanges. This does not walk the object graph.
(Inherited from ChangeTrackingPropertyBag.)
Public property IsEditing
Currently editing
Public property Metadata
Cached metadata for the associated model.
(Inherited from PropertyBagBase.)
Protected property Values
Access to the values dictionary for sub-classes. Extreme care must be taken when working this dictionary directly, as events will not be automatically fired.
(Inherited from ChangeTrackingPropertyBag.)

Events


  Name Description
Public event PropertyChanged
This fires for each changed property.
(Inherited from PropertyBagBase.)
Public event PropertyChanging
Occurs just before a property value is changed.
(Inherited from PropertyBagBase.)
Public event RevalidateObject
This fires after one or more properties have been changed and their corresponding RevalidateProperty events have been handled.
(Inherited from PropertyBagBase.)
Public event RevalidateProperty
This fires after one or more properties have been changed.
(Inherited from PropertyBagBase.)