PnpObjectCollection.GetAt(UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
我们不再建议使用 Windows.Devices.Enumeration.Pnp 命名空间中的类型。 相反,Windows.Devices.Enumeration 命名空间中的类型实现了 Windows.Devices.Enumeration.Pnp 功能的新式且维护得更好的超集。
PnpObjectType 的替代方法是 Windows.Devices.Enumeration.DeviceInformationKind 枚举,你可以将其作为参数传递给 Windows.Devices.Enumeration API。 例如,创建 PnpObjectWatcher 时不使用 PnpObjectType,而是在创建 DeviceWatcher 时使用 DeviceInformationKind。
返回位于指定索引处的 PnpObject 。
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
参数
- index
-
UInt32
unsigned int
uint32_t
要检索的值的整数索引。
返回
指定索引处的 PnpObject 。
实现
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)