Szerkesztés

Megosztás a következőn keresztül:


ComplexObject.ReportPropertyChanging(String) Method

Definition

Notifies the change tracker that a property change is pending on a complex object.

protected:
 override void ReportPropertyChanging(System::String ^ property);
protected override sealed void ReportPropertyChanging (string property);
override this.ReportPropertyChanging : string -> unit
Protected Overrides NotOverridable Sub ReportPropertyChanging (property As String)

Parameters

property
String

The name of the changing property.

Exceptions

property is null.

Remarks

When a complex type is generated by the Entity Data Model tools, the ReportPropertyChanging method is called before a property change to cache the current value of the property in the IEntityChangeTracker so that this value can be used as the original value for the property.

This method calls the EntityComplexMemberChanging method in the change tracker.

When tracking changes that are made to the property of a custom complex object, you must call ReportPropertyChanging. Do this when the complex object inherits from ComplexObject.

Applies to