共用方式為


XmlNamedNodeMap.IndexOf(IXmlNode, UInt32) 方法

定義

傳回向量檢視中指定專案的索引。

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

參數

value
IXmlNode

在向量檢視中尋找的專案。

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

適用於