다음을 통해 공유


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

속성 값

사용자가 카탈로그를 지정할 수 있으면 기본값은 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)

적용 대상