SourceSwitch.ShouldTrace(TraceEventType) メソッド
定義
トレース イベントの種類に基づいて、トレース リスナーを呼び出すかどうかを決定します。Determines if trace listeners should be called, based on the trace event type.
public:
bool ShouldTrace(System::Diagnostics::TraceEventType eventType);
public bool ShouldTrace (System.Diagnostics.TraceEventType eventType);
member this.ShouldTrace : System.Diagnostics.TraceEventType -> bool
Public Function ShouldTrace (eventType As TraceEventType) As Boolean
パラメーター
- eventType
- TraceEventType
TraceEventType 値のいずれか 1 つ。One of the TraceEventType values.
戻り値
トレース リスナーを呼び出す必要がある場合は true
。それ以外の場合は false
。true
if the trace listeners should be called; otherwise, false
.
注釈
このメソッドは Trace
、 TraceSource トレースを書き込むためにリスナーを呼び出す必要があるかどうかを判断するために、クラスのメソッドによって呼び出されます。This method is called by the Trace
methods in the TraceSource class to determine whether listeners should be called to write a trace.
注意
アプリケーションコードはこのメソッドを呼び出すことはできません。これは、クラスのメソッドによってのみ呼び出されることを意図してい TraceSource ます。Application code should not call this method; it is intended to be called only by methods in the TraceSource class.