TraceListenerCollection::CopyTo Method (array<TraceListener^>^, Int32)

 

Copies a section of the current TraceListenerCollection list to the specified array at the specified index.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public:
void CopyTo(
	array<TraceListener^>^ listeners,
	int index
)

Parameters

listeners
Type: array<System.Diagnostics::TraceListener^>^

An array of type Array to copy the elements into.

index
Type: System::Int32

The starting index number in the current list to copy from.

.NET Framework
Available since 1.1
Return to top
Show: