SessionStateSection.AllowCustomSqlDatabase Proprietà

Definizione

Ottiene o imposta un valore che indica se l'utente può specificare il valore iniziale del catalogo nella proprietà 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

Valore della proprietà

true se l'utente è autorizzato a specificare il catalogo. In caso contrario, false. Il valore predefinito è false.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come ottenere la AllowCustomSqlDatabase proprietà . Fare riferimento all'esempio di codice nell'argomento della SessionStateSection classe per informazioni su come accedere all'oggetto SessionStateSection .

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

Si applica a