NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TraceListeners.Item (String)

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

[C#] In C#, this member is the indexer for the TraceListeners class.

[Visual Basic]
Overloads Public Default ReadOnly Property Item( _
   ByVal name As String _
) As TraceListener
[C#]
public TraceListener this[
   string name
] {get;}
[C++]
public: __property TraceListener* get_Item(
   String* name
);
[JScript]
returnValue = TraceListenersObject.Item(name);
-or-
returnValue = TraceListenersObject(name);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.

Arguments [JScript]

name
The name of the TraceListener to get from the list.

Parameters [Visual Basic, C#, C++]

name
The name of the TraceListener to get from the list.

Property Value

The first TraceListener in the list with the given name. This item returns a null reference (in Visual Basic Nothing) if no TraceListener with the given name can be found.

Remarks

The Item property (TraceListeners indexer) is case-sensitive when searching for names. That is, if two listeners exist with the names "Lname" and "lname," Item property (TraceListeners indexer) will find the specific listener you name.

See Also

TraceListeners Class | TraceListeners Members | System.Diagnostics Namespace | TraceListeners.Item Overload List | TraceListeners | TraceListener | DefaultTraceListener | TextWriterTraceListener | Debug | Trace