XmlNodeList.IndexOf | indexOf method

Applies to Windows and Windows Phone

Returns the index of a specified item in the vector.

Syntax


var result = xmlNodeList.indexOf(value);
var index = result.index;
var boolean = result.boolean;

Parameters

value

Type: IXmlNode

The item to find in the vector.

index (out parameter)

Type: Number [JavaScript] | uint32 [C++]

The zero-based index of the item if found. Zero is returned if the item is not found.

Return value

Type: Boolean [JavaScript] | Platform::Boolean [C++]

TRUE if the item is found; otherwise, FALSE if the item is not found.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

XmlNodeList

 

 

Show:
© 2014 Microsoft