ComplexObject.ReportPropertyChanging(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 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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om