Open sandboxFocus

Method GetTraceSource

GetTraceSource(string)

Gets a TraceSource of a given name.

Declaration
public static TraceSource GetTraceSource(string name)
Parameters
Type Name Description
string name

The name of the TraceSource.

Returns
Type Description
TraceSource

A TraceSource named name. Two calls of this methods are guaranteed to return the same instance, unless the previous instance has been garbage collected in the meantime.