ProfileSection.AutomaticSaveEnabled Property

 

Gets or sets a value that determines whether changes to user-profile information are automatically saved on page exit.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[<ConfigurationPropertyAttribute("automaticSaveEnabled", DefaultValue = true)>]
member AutomaticSaveEnabled : bool with get, set

Property Value

Type: System.Boolean

true if profile information is automatically saved on page exit; otherwise, false. The default is true.

When the AutomaticSaveEnabled property is false, changes to individual profiles are not saved unless the Save method of the ProfileCommon class is called in code. When the AutomaticSaveEnabled property is true, the ProfileAutoSaving event also allows code to override the automatic save behavior.

The following code example shows how to use the AutomaticSaveEnabled property. This code example is part of a larger example provided for the ProfileSection class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: