TraceListenerCollection.IList.Add Method (Object)

 

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

Adds a trace listener to the TraceListenerCollection.

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

int IList.Add(
	object value
)

Parameters

value
Type: System.Object

The object to add to the TraceListenerCollection.

Return Value

Type: System.Int32

The position into which the new trace listener was inserted.

Exception Condition
ArgumentException

value is null.

-or-

value is not a TraceListener.

Use the Add method to add a new trace listener to the collection.

.NET Framework
Available since 1.1
Return to top
Show: