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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: