Item Property (String, String)
Collapse the table of content
Expand the table of content

XmlNode.Item Property (String, String)


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

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public virtual XmlElement this[
	string localname,
	string ns
] { get; }


Type: System.String

The local name of the element.

Type: System.String

The namespace URI of the element.

Property Value

Type: System.Xml.XmlElement

The first XmlElement with the matching localname and ns. . It returns a null reference (Nothing in Visual Basic) if there is no match.

This property is a Microsoft extension to the Document Object Model (DOM).

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft