TraceSource.Listeners TraceSource.Listeners TraceSource.Listeners TraceSource.Listeners Property

Definition

Gets the collection of trace listeners for the trace source.

public:
 property System::Diagnostics::TraceListenerCollection ^ Listeners { System::Diagnostics::TraceListenerCollection ^ get(); };
public System.Diagnostics.TraceListenerCollection Listeners { get; }
member this.Listeners : System.Diagnostics.TraceListenerCollection
Public ReadOnly Property Listeners As TraceListenerCollection
Property Value

A TraceListenerCollection that contains the active trace listeners associated with the source.

Remarks

Use this property to access and perform operations on the trace listeners.

Security

SecurityPermission
for operating with unmanaged code. Demand value: LinkDemand; Associated enumeration: UnmanagedCode.

Applies to