System.Diagnostics.TraceFilter.ShouldTrace Method

When overridden in a derived class, determines whether the trace listener should trace the event.

Syntax

public abstract bool ShouldTrace (TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data)

Parameters

cache
The System.Diagnostics.TraceEventCache that contains information for the trace event.
source
The name of the source.
eventType
One of the System.Diagnostics.TraceEventType values specifying the type of event that has caused the trace.
id
A trace identifier number.
formatOrMessage
Either the format to use for writing an array of arguments specified by the args parameter, or a message to write.
args
An array of argument objects.
data1
A trace data object.
data
An array of trace data objects.

Returns

true to trace the specified event; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0