言語

SessionStateSection.AllowCustomSqlDatabase プロパティ

定義

ユーザーが 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

プロパティ値

true ユーザーがカタログを指定できる場合。それ以外の場合は false。 既定値は false です。

属性

次のコード例では、 AllowCustomSqlDatabase プロパティを取得する方法を示します。 SessionStateSection オブジェクトにアクセスする方法については、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)

適用対象