TraceListenerCollection.IList.Insert Method (Int32, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Inserts a TraceListener object at the specified position in the TraceListenerCollection.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

Private Sub Insert (
	index As Integer,
	value As Object
	Implements IList.Insert


Type: System.Int32

The zero-based index at which value should be inserted.

Type: System.Object

The TraceListener object to insert into the TraceListenerCollection.

Exception Condition

value is not a TraceListener object.

Use the Insert method of the TraceListenerCollection class to insert a TraceListener object into the collection.

.NET Framework
Available since 1.1
Return to top