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)

Private Function Add (
	value As Object
) As Integer
	Implements IList.Add


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

value is null.


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