ProfileSection.AutomaticSaveEnabled Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene o establece un valor que determina si los cambios en la información del perfil de usuario se guardan automáticamente en la salida de la página.
public:
property bool AutomaticSaveEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("automaticSaveEnabled", DefaultValue=true)]
public bool AutomaticSaveEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("automaticSaveEnabled", DefaultValue=true)>]
member this.AutomaticSaveEnabled : bool with get, set
Public Property AutomaticSaveEnabled As Boolean
Valor de propiedad
true si la información del perfil se guarda automáticamente en la salida de la página; de lo contrario, false. El valor predeterminado es true.
- Atributos
Ejemplos
En el ejemplo de código siguiente se muestra cómo usar la AutomaticSaveEnabled propiedad . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la ProfileSection clase .
// Get the current AutomaticSaveEnabled property value.
Console.WriteLine(
"Current AutomaticSaveEnabled value: '{0}'", profileSection.AutomaticSaveEnabled);
// Set the AutomaticSaveEnabled property to false.
profileSection.AutomaticSaveEnabled = false;
' Get the current AutomaticSaveEnabled property value.
Console.WriteLine( _
"Current AutomaticSaveEnabled value: '{0}'", profileSection.AutomaticSaveEnabled)
' Set the AutomaticSaveEnabled property to false.
profileSection.AutomaticSaveEnabled = false
Comentarios
Cuando la propiedad es false, los AutomaticSaveEnabled cambios en perfiles individuales no se guardan a menos que se llame al Save método de la ProfileCommon clase en el código. Cuando la AutomaticSaveEnabled propiedad es true, el evento también permite que el ProfileAutoSaving código invalide el comportamiento de guardado automático.