Holds a boolean value. This value indicates weather the record values loaded into the object's properties have been modified since then or not.
if (this.IsDirty)
{
//codeBlock
}
As in the above example, IsDirty property can be used to determine weather the record values loaded have been modified or not and IsDirty can be combined with IsLoaded to check if the record has been loaded or not.
| C# | |
|---|---|
virtual bool IsDirty {get; set;} | |
Target Platforms: .NET Framework 1.1 or .NET Framework 2.0