The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpChallengeHeaderValueCollection.GetMany | getMany method

Applies to Windows and Windows Phone

Retrieves the HttpChallengeHeaderValue items that start at the specified index in the collection.


var result = httpChallengeHeaderValueCollection.getMany(startIndex);
var items = result.items;
var number = result.number;



Type: Number [JavaScript] | uint32 [C++]

The zero-based index of the start of the HttpChallengeHeaderValue items in the HttpChallengeHeaderValueCollection.

items (out parameter)

Type: array of HttpChallengeHeaderValue

An array of HttpChallengeHeaderValue items that start at startIndex in the HttpChallengeHeaderValueCollection.

Return value

Type: Number [JavaScript] | uint32 [C++]

The number of HttpChallengeHeaderValue items retrieved.


The elements are copied to the array in the same order in which the enumerator iterates through the collection. It's typical to specify startIndex 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 Size 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 specified in items.

If you are programming using Visual C++ component extensions (C++/CX) or JavaScript, CopyTo has similar behavior to GetMany, but note that the parameters are in a different order. Or you can make an IVectorView copy by calling the GetView method.


Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Web::Http::Headers [C++]



See also




© 2014 Microsoft