共用方式為


ResourceCandidateVectorView.IndexOf(ResourceCandidate, UInt32) 方法

定義

取得集合中指定 ResourceCandidate 的索引。

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

參數

value
ResourceCandidate

在集合中尋找的 ResourceCandidate

index
UInt32

unsigned int

uint32_t

如果找到專案, 則為 ResourceCandidate之以零起始的索引;如果找不到專案,則為零。

傳回

Boolean

bool

true 如果找到 ResourceCandidate ,則為 ;否則, 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@)

適用於