Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TraceListenerCollection::IList::Insert Method (Int32, Object^)

 

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:
virtual void Insert(
	int index,
	Object^ value
) sealed = IList::Insert

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.

Exception Condition
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
Available since 1.1
Return to top
Show:
© 2017 Microsoft