XPathLibraryCollection.CopyTo MethodXPathLibraryCollection.CopyTo MethodXPathLibraryCollection::CopyTo Method

Copies the elements of the ICollection<T>ICollection(Of T)ICollection<T> to an ArrayArrayArray, starting at a particular ArrayArrayArray index.

Syntax

Public Sub CopyTo( _
    array As XPathFunctionLibrary[], _
    arrayIndex As Integer _
)
public void CopyTo(
    XPathFunctionLibrary[] array,
    int arrayIndex
)
public:
virtual void CopyTo(
    array<XPathFunctionLibrary^> array, 
    int arrayIndex
) sealed
 

Parameters

array

Type: XmlPrime.XPathFunctionLibrary[]XmlPrime.XPathFunctionLibrary()array<XmlPrime::XPathFunctionLibrary^>^

The one-dimensional ArrayArrayArray that is the destination of the elements copied from ICollection<T>ICollection(Of T)ICollection<T>. The ArrayArrayArray must have zero-based indexing.

arrayIndex

Type: System.Int32System.Int32System::Int32

The zero-based index in array at which copying begins.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException array is null.
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException arrayIndex is less than 0.
ArgumentExceptionArgumentExceptionArgumentException array is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source ICollection<T>ICollection(Of T)ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.