ParserErrorCollection.CopyTo Method
.NET Framework 3.0
Copies the ParserError objects in the collection to a compatible one-dimensional array, starting at the specified index of the target array.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void CopyTo ( ParserError[] array, int index )
public function CopyTo ( array : ParserError[], index : int )
Not applicable.
Parameters
- array
An array of type ParserError to which the parser errors in the collection are copied.
- index
The first index within the array to which the ParserError is copied.
Use the CopyTo method to copy the ParserError objects in a collection (including the item references they contain) to a compatible array, starting at a specified index. This is useful when you want to sort the ParserError objects in the collection by using the Sort method. To do this:
The following code example demonstrates how to copy the contents of a ParserErrorCollection object to the specified ParserError array.
Community Additions
ADD
Show: