Freigeben über


SessionStateSection.AllowCustomSqlDatabase Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob der Benutzer den anfänglichen Katalogwert in der SqlConnectionString Eigenschaft angeben kann.

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

Eigenschaftswert

truewenn der Benutzer den Katalog angeben darf; andernfalls . false Der Standardwert ist false.

Attribute

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie die AllowCustomSqlDatabase Eigenschaft abgerufen wird. Weitere Informationen zum Zugreifen auf das SessionStateSection Objekt finden Sie im Codebeispiel im SessionStateSection Klassenthema.

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

Gilt für: