Bagikan melalui


HttpRuntimeSection.Enable Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah domain aplikasi diaktifkan.

public:
 property bool Enable { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enable", DefaultValue=true)]
public bool Enable { get; set; }
[<System.Configuration.ConfigurationProperty("enable", DefaultValue=true)>]
member this.Enable : bool with get, set
Public Property Enable As Boolean

Nilai Properti

true jika domain aplikasi diaktifkan; jika tidak, false. Nilai defaultnya adalah true.

Atribut

Contoh

Contoh berikut menunjukkan cara menggunakan Enable properti .

// Get the Enable property value.
Response.Write("Enable: " +
  configSection.Enable + "<br>");

// Set the Enable property value to true.
configSection.Enable = true;
' Get the Enable property value.
Response.Write("Enable: " & _
  configSection.Enable & "<br>")

' Set the Enable property value to true.
configSection.Enable = True

Keterangan

Pengaturan ini memengaruhi domain atau domain aplikasi pada tingkat simpul saat ini dan di bawah ini.

Berlaku untuk

Lihat juga