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