NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNodeList.Item

Retrieves a node at the given index.

[C#] In C#, this member is the indexer for the XmlNodeList class.

[Visual Basic]
Overridable Public Default ReadOnly Property Item( _
   ByVal i As Integer _
) As XmlNode
[C#]
public XmlNode this[
   int i
] {virtual get;}
[C++]
public: __property virtual XmlNode* get_Item(
   int i
);
[JScript]
returnValue = XmlNodeListObject.Item(i);
-or-
returnValue = XmlNodeListObject(i);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.

Arguments [JScript]

i
Zero-based index into the list of nodes.

Parameters [Visual Basic, C#, C++]

i
Zero-based index into the list of nodes.

Property Value

The XmlNode in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

See Also

XmlNodeList Class | XmlNodeList Members | System.NewXml Namespace