DeviceInformationCollection.IndexOf(DeviceInformation, UInt32) 方法

定義

傳回集合中指定 DeviceInformation 物件的索引。

public:
 virtual bool IndexOf(DeviceInformation ^ value, [Out] unsigned int & index) = IVectorView<DeviceInformation ^>::IndexOf;
bool IndexOf(DeviceInformation const& value, [Out] uint32_t & index);
public bool IndexOf(DeviceInformation value, out uint index);
Public Function IndexOf (value As DeviceInformation, ByRef index As UInteger) As Boolean

參數

value
DeviceInformation

集合中的 DeviceInformation 物件。

index
UInt32

unsigned int

uint32_t

索引。

傳回

Boolean

bool

如果方法成功,則為true;否則為false

實作

M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,System.UInt32@) M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,unsigned int@) M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,uint32_t@)

適用於