Редагувати

Поділитися через


TraceListenerCollection.IList.Add(Object) Method

Definition

Adds a trace listener to the TraceListenerCollection.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

Parameters

value
Object

The object to add to the TraceListenerCollection.

Returns

The position into which the new trace listener was inserted.

Implements

Exceptions

value is null.

-or-

value is not a TraceListener.

Remarks

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

Applies to