Copies the elements of the collection to an array, starting at a particular array index in the destination array.
Type: array of HttpCookiePairHeaderValue
The zero-based index in array at which copying begins.
The elements are copied to the array in the same order in which the enumerator iterates through the collection. It's typical to specify arrayIndex as 0 if all you're doing is making a simple copy of the collection items, where you've created a destination array with a length that matches the Count of the collection you're copying.
This method will throw an exception if the number of elements in the source collection is greater than the length of the destination array.
If you are programming with Visual C++ component extensions (C++/CX), GetMany has similar behavior to CopyTo, but note that the parameters are in a different order. Or you can make an IVectorView copy by calling GetView.
Minimum supported client
Minimum supported server
|Windows Server 2012 R2|