Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.5 KB

pnpobjectcollection_getmany_736635870.md

File metadata and controls

35 lines (24 loc) · 1.5 KB
-api-id -api-type
M:Windows.Devices.Enumeration.Pnp.PnpObjectCollection.GetMany(System.UInt32,Windows.Devices.Enumeration.Pnp.PnpObject[])
winrt method

Windows.Devices.Enumeration.Pnp.PnpObjectCollection.GetMany

-description

Important

We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.

The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.

Retrieves multiple elements in a single pass through the iterator.

-parameters

-param startIndex

The index from which to start retrieval.

-param items

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

-returns

The number of items retrieved.

-remarks

-examples

-see-also