This documentation is archived and is not being maintained.

TraceListenerCollection.CopyTo Method

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

[Visual Basic]
Public Sub CopyTo( _
   ByVal listeners() As TraceListener, _
   ByVal index As Integer _
)
[C#]
public void CopyTo(
 TraceListener[] listeners,
 int index
);
[C++]
public: void CopyTo(
 TraceListener* listeners[],
 int index
);
[JScript]
public function CopyTo(
   listeners : TraceListener[],
 index : int
);

Parameters

listeners
An array of type Array to copy the elements into.
index
The starting index number in the current list to copy from.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

TraceListenerCollection Class | TraceListenerCollection Members | System.Diagnostics Namespace | TraceListenerCollection | TraceListener | DefaultTraceListener | TextWriterTraceListener | Debug | Trace

Show: