SessionStateSection.AllowCustomSqlDatabase Propriedade

Definição

Recebe ou define um valor que indica se o utilizador pode especificar o valor inicial do catálogo na SqlConnectionString propriedade.

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 Propriedade

true se o utilizador puder especificar o catálogo; caso contrário, false. O valor predefinido é false.

Atributos

Exemplos

O exemplo de código seguinte demonstra como obter a AllowCustomSqlDatabase propriedade. Consulte o exemplo de código no SessionStateSection tópico da aula para aprender como aceder ao 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)

Aplica-se a