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@)

适用于