PnpObjectCollection.GetMany(UInt32, PnpObject[]) Method

Definition

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.

public:
 virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <PnpObject ^> ^ items) = IVectorView<PnpObject ^>::GetMany;
uint32_t GetMany(uint32_t const& startIndex, winrt::array_view <PnpObject const&> & items);
public uint GetMany(uint startIndex, PnpObject[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As PnpObject()) As UInteger

Parameters

startIndex
UInt32

unsigned int

uint32_t

The index from which to start retrieval.

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

Returns

UInt32

unsigned int

uint32_t

The number of items retrieved.

Implements

M:Windows.Foundation.Collections.IVectorView1.GetMany(System.UInt32,0[]) M:Windows.Foundation.Collections.IVectorView1.GetMany(unsigned int,0[]) M:Windows.Foundation.Collections.IVectorView1.GetMany(uint32_t,0[])

Applies to