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