PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­SourceTrace­Source­Logging­BackendGet­Trace­Source
Open sandboxFocus

TraceSourceLoggingBackend.GetTraceSource Method

GetTraceSource(String)

Gets a System.Diagnostics.TraceSource of a given name.

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

The name of the System.Diagnostics.TraceSource.

Returns
Type Description
System.Diagnostics.TraceSource

A System.Diagnostics.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.