Information
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.

PnpObjectCollection.GetMany | getMany method

Applies to Windows and Windows Phone

Retrieves multiple elements in a single pass through the iterator.

Syntax


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

Parameters

startIndex

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

The index from which to start retrieval.

items (out parameter)

Type: array of PnpObject

Provides the destination for the result. Size the initial array size as a "capacity" in order to specify how many results should be retrieved.

Return value

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

The number of items retrieved.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

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

Namespace

Windows.Devices.Enumeration.Pnp
Windows::Devices::Enumeration::Pnp [C++]

Metadata

Windows.winmd

See also

PnpObjectCollection

 

 

Show:
© 2014 Microsoft