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.
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.
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.
TraceListeners Class | TraceListeners Members | System.Diagnostics Namespace | TraceListeners.Item Overload List | TraceListeners | TraceListener | DefaultTraceListener | TextWriterTraceListener | Debug | Trace