ObjectStateEntry.IsPropertyChanged Method (String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public abstract bool IsPropertyChanged(
	string propertyName
)

Parameters

propertyName
Type: System.String

The name of the property.

Return Value

Type: System.Boolean

true if the property has changed; otherwise, false.

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.

.NET Framework
Available since 4.5
Return to top
Show: