TraceListenerCollection.IList.Add Method

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

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

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.

Implements

IList.Add(Object)

ExceptionCondition
ArgumentException

value is Nothing.

-or-

value is not a TraceListener.

Use the Add method to add a new trace listener to 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft