Bagikan melalui


SessionStateSection.AllowCustomSqlDatabase Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah pengguna dapat menentukan nilai katalog awal dalam SqlConnectionString properti.

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

Nilai Properti

true jika pengguna diizinkan untuk menentukan katalog; jika tidak, false. Nilai defaultnya adalah false.

Atribut

Contoh

Contoh kode berikut menunjukkan cara mendapatkan AllowCustomSqlDatabase properti. Lihat contoh kode dalam SessionStateSection topik kelas untuk mempelajari cara mengakses SessionStateSection objek.

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

Berlaku untuk