Share via


WindowTabCollection.IndexOf(WindowTab, UInt32) 方法

定义

检索指定项的索引。

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

参数

value
WindowTab

要在集合中查找的值。

index
UInt32

unsigned int

uint32_t

要查找的项的索引(如果找到)。

返回

Boolean

bool

true 如果找到具有指定值的项,则为 ;否则为 false

实现

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

注解

重要

此 API 仅适用于 Win32 桌面应用。 不支持 UWP 和其他应用类型。

适用于