次の方法で共有


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

プロパティ値

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

適用対象

こちらもご覧ください