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

Inserts the listener at the specified index.

[Visual Basic]
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal listener As TraceListener _
)
[C#]
public void Insert(
   int index,
   TraceListener listener
);
[C++]
public: void Insert(
   int index,
   TraceListener* listener
);
[JScript]
public function Insert(
   index : int,
   listener : TraceListener
);

Parameters

index
The position in the list that you want to insert the listener.
listener
A TraceListener to insert in the list.

Remarks

If index equals the number of items in the list, then the listener is appended to the end of the list.

The index is zero-based. Therefore, if you want the insert the listener into the third position, you must call Insert (2).

See Also

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