ObjectStateEntry.IsPropertyChanged(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.
Uses DetectChanges to determine whether or not the current value of the property with the given name is different from its original value. Note that this may be different from the property being marked as modified since a property which has not changed can still be marked as modified.
public:
abstract bool IsPropertyChanged(System::String ^ propertyName);
public abstract bool IsPropertyChanged (string propertyName);
abstract member IsPropertyChanged : string -> bool
Public MustOverride Function IsPropertyChanged (propertyName As String) As Boolean
Parameters
- propertyName
- String
The name of the property.
Returns
true
if the property has changed; otherwise, false
.
Remarks
For complex properties, a new instance of the complex object which has all the same property values as the original instance is not considered to be different by this method.