System.Web.Profile.ProfileBase.IsDirty Property

Gets a value indicating whether any of the profile properties have been modified.

Syntax

public bool IsDirty { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ProfileBase.IsDirty property can be used by a profile provider during the System.Configuration.SettingsBase.Save method to determine whether properties that are made up of primitive types, strings, or DateTime objects have been changed. Changed properties are then updated by the profile provider in the System.Configuration.SettingsBase.Save method. The System.Configuration.SettingsBase.Save method is automatically called at the end of page execution if the ProfileManager.AutomaticSaveEnabled property is true

A profile provider called in the System.Configuration.SettingsBase.Save method cannot explicitly determine whether a profile property with a custom class type or a complex type, such as a collection, has changed. You can use the ProfileModule.ProfileAutoSaving event to determine whether a custom object has been modified and to continue with the automatic save for modified objects or cancel the automatic save if no objects have been modified. The default behavior of the System.Web.Profile.ProfileBase class is to set the ProfileBase.IsDirty property to true for properties that are of a custom or complex type the first time the property is accessed.

Requirements

Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0