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.RemoveAt

Removes the TraceListener at the specified index.

[Visual Basic]
Overridable Public Sub RemoveAt( _
   ByVal index As Integer _
)
[C#]
public virtual void RemoveAt(
   int index
);
[C++]
public: virtual void RemoveAt(
   int index
);
[JScript]
public function RemoveAt(
   index : int
);

Parameters

index
The zero-based index of the TraceListener you want to remove from the list.

Remarks

The index is zero-based. Therefore, you must subtract one from the numerical position of a particular TraceListener to delete that TraceListener. For example, to remove the third TraceListener, you need to specify RemoveAt (2).

See Also

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