TraceListenerCollection::Item Property (String^)

 

Gets the first TraceListener in the list with the specified name.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public:
property TraceListener^ default[
	String^ name
] {
	TraceListener^ get(String^ name);
}

Parameters

name
Type: System::String^

The name of the TraceListener to get from the list.

Property Value

Type: System.Diagnostics::TraceListener^

The first TraceListener in the list with the given Name. This item returns null if no TraceListener with the given name can be found.

The Item property is case-sensitive when searching for names. That is, if two listeners exist with the names "Lname" and "lname", Item property will find only the TraceListener with the Name that you specify, not both.

.NET Framework
Available since 1.1
Return to top
Show: