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!

XmlNode.Item (String, String)

Retrieves the first child element with the specified LocalName and NamespaceURI.

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

[Visual Basic]
Overloads Overridable Public Default ReadOnly Property Item( _
   ByVal localname As String, _
   ByVal ns As String _
) As XmlElement
[C#]
public XmlElement this[
   string localname,
   string ns
] {virtual get;}
[C++]
public: __property virtual XmlElement* get_Item(
   String* localname,
   String* ns
);
[JScript]
returnValue = XmlNodeObject.Item(localname, ns);
-or-
returnValue = XmlNodeObject(localname, ns);

[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]

localname
LocalName to match
ns
[To be supplied.]

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

localname
LocalName to match
ns
[To be supplied.]

Property Value

The first XmlElement that matches the specified LocalName and NamespaceURI.

See Also

XmlNode Class | XmlNode Members | System.NewXml Namespace | XmlNode.Item Overload List