TraceSection.Enabled プロパティ

定義

ASP.NET トレース サービスが有効かどうかを示す値を取得または設定します。

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

プロパティ値

true トレースが有効な場合。それ以外の場合は false。 既定値は、true です。

属性

次のコード例は、 Enabled プロパティの使用方法を示しています。 このコード例は、 TraceSection クラスに提供されるより大きな例の一部です。


// Get the current Enabled property value.
Boolean enabledValue = traceSection.Enabled;

// Set the Enabled property to false.
traceSection.Enabled = false;

' Get the current Enabled property value.
Dim enabledValue As Boolean = traceSection.Enabled

' Set the Enabled property to false.
traceSection.Enabled = False

適用対象

こちらもご覧ください