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::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:
virtual int Add(
	Object^ value
) sealed = 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.

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:
© 2017 Microsoft