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 _
public void CopyTo(
 TraceListener[] listeners,
 int index
public: void CopyTo(
 TraceListener* listeners[],
 int index
public function CopyTo(
   listeners : TraceListener[],
 index : int


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


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