TraceFilter.ShouldTrace メソッド
アセンブリ: System (system.dll 内)

Public MustOverride Function ShouldTrace ( _ cache As TraceEventCache, _ source As String, _ eventType As TraceEventType, _ id As Integer, _ formatOrMessage As String, _ args As Object(), _ data1 As Object, _ data As Object() _ ) As Boolean
Dim instance As TraceFilter Dim cache As TraceEventCache Dim source As String Dim eventType As TraceEventType Dim id As Integer Dim formatOrMessage As String Dim args As Object() Dim data1 As Object Dim data As Object() Dim returnValue As Boolean returnValue = instance.ShouldTrace(cache, source, eventType, id, formatOrMessage, args, data1, data)
public abstract bool ShouldTrace ( TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, Object[] args, Object data1, Object[] data )
public: virtual bool ShouldTrace ( TraceEventCache^ cache, String^ source, TraceEventType eventType, int id, String^ formatOrMessage, array<Object^>^ args, Object^ data1, array<Object^>^ data ) abstract
public abstract boolean ShouldTrace ( TraceEventCache cache, String source, TraceEventType eventType, int id, String formatOrMessage, Object[] args, Object data1, Object[] data )
public abstract function ShouldTrace ( cache : TraceEventCache, source : String, eventType : TraceEventType, id : int, formatOrMessage : String, args : Object[], data1 : Object, data : Object[] ) : boolean
- data1
指定したイベントをトレースする場合は true。それ以外の場合は false。


イベントについて、トレース イベントの種類が TraceEventType.Error に等しい場合にトレースが発生することを示す ShouldTrace メソッドをオーバーライドする方法を次のコード例に示します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からTraceFilter.ShouldTrace メソッドを検索する場合は、下記のリンクをクリックしてください。

- TraceFilter.ShouldTrace メソッドのページへのリンク