TraceListenerCollection.AddRange Method

Definition

Adds multiple TraceListener objects to the collection.

Overloads

AddRange(TraceListener[])

Adds an array of TraceListener objects to the list.

AddRange(TraceListenerCollection)

Adds the contents of another TraceListenerCollection to the list.

AddRange(TraceListener[])

Adds an array of TraceListener objects to the list.

public:
 void AddRange(cli::array <System::Diagnostics::TraceListener ^> ^ value);
public void AddRange (System.Diagnostics.TraceListener[] value);
member this.AddRange : System.Diagnostics.TraceListener[] -> unit
Public Sub AddRange (value As TraceListener())

Parameters

value
TraceListener[]

An array of TraceListener objects to add to the list.

Exceptions

value is null.

See also

AddRange(TraceListenerCollection)

Adds the contents of another TraceListenerCollection to the list.

public:
 void AddRange(System::Diagnostics::TraceListenerCollection ^ value);
public void AddRange (System.Diagnostics.TraceListenerCollection value);
member this.AddRange : System.Diagnostics.TraceListenerCollection -> unit
Public Sub AddRange (value As TraceListenerCollection)

Parameters

value
TraceListenerCollection

Another TraceListenerCollection whose contents are added to the list.

Exceptions

value is null.

See also

Applies to