System.Diagnostics.TraceSource.Switch Property

Gets or sets the source switch value.

Syntax

public SourceSwitch Switch { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The TraceSource.Switch property allows the filtering of messages before the trace source calls the listeners.

The switch is used to check whether trace calls should be generated or ignored. Each trace method calls the SourceSwitch.ShouldTrace(TraceEventType) method of the System.Diagnostics.SourceSwitch to determine whether to proceed with the trace. If the call returns true, the listeners are called.

Requirements

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