Share via


SessionStateSection.AllowCustomSqlDatabase Propiedad

Definición

Obtiene o establece un valor que indica si el usuario puede especificar el valor de catálogo inicial en la propiedad SqlConnectionString.

public:
 property bool AllowCustomSqlDatabase { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("allowCustomSqlDatabase", DefaultValue=false)]
public bool AllowCustomSqlDatabase { get; set; }
[<System.Configuration.ConfigurationProperty("allowCustomSqlDatabase", DefaultValue=false)>]
member this.AllowCustomSqlDatabase : bool with get, set
Public Property AllowCustomSqlDatabase As Boolean

Valor de propiedad

Es true si el usuario puede especificar el catálogo; de lo contrario, es false. El valor predeterminado es false.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo obtener la AllowCustomSqlDatabase propiedad . Consulte el ejemplo de código del tema de clase SessionStateSection para obtener información sobre cómo acceder al SessionStateSection objeto.

// Display the current AllowCustomSqlDatabase property value.
Console.WriteLine("AllowCustomSqlDatabase: {0}",
  sessionStateSection.AllowCustomSqlDatabase);
' Display the current AllowCustomSqlDatabase property value.
Console.WriteLine("AllowCustomSqlDatabase: {0}", _
  sessionStateSection.AllowCustomSqlDatabase)

Se aplica a