Share via


PnpObjectCollection.GetAt(UInt32) 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.

Returns the PnpObject located at the specified index.

public:
 virtual PnpObject ^ GetAt(unsigned int index) = IVectorView<PnpObject ^>::GetAt;
PnpObject GetAt(uint32_t const& index);
public PnpObject GetAt(uint index);
function getAt(index)
Public Function GetAt (index As UInteger) As PnpObject

Parameters

index
UInt32

unsigned int

uint32_t

The integer index for the value to retrieve.

Returns

The PnpObject at the specified index.

Implements

M:Windows.Foundation.Collections.IVectorView`1.GetAt(System.UInt32) M:Windows.Foundation.Collections.IVectorView`1.GetAt(unsigned int) M:Windows.Foundation.Collections.IVectorView`1.GetAt(uint32_t)

Applies to