ComplexObject.ReportPropertyChanged(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the change tracker that a property of a complex object has changed.
protected:
override void ReportPropertyChanged(System::String ^ property);
protected override sealed void ReportPropertyChanged (string property);
override this.ReportPropertyChanged : string -> unit
Protected Overrides NotOverridable Sub ReportPropertyChanged (property As String)
Parameters
- property
- String
The name of the changed property.
Exceptions
property
is null
.
Remarks
When a complex type is generated by the Entity Data Model tools, the ReportPropertyChanged method is called after a property change to commit the cached value in the IEntityChangeTracker as the original value of the property.
This method calls the EntityComplexMemberChanged method in the change tracker.
When tracking changes that are made to the property of a custom complex object, you must call ReportPropertyChanged. Do this when the complex object inherits from ComplexObject.