Export (0) Print
Expand All

TraceListenerCollection.IList.Insert Method

This API supports the .NET Framework 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)

void IList.Insert(
	int index,
	Object value
)

Parameters

index
Type: System.Int32

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

value
Type: System.Object

The TraceListener object to insert into the TraceListenerCollection.

Implements

IList.Insert(Int32, Object)

ExceptionCondition
ArgumentException

value is not a TraceListener object.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft