Export (0) Print
Expand All

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)

'Declaration
Public Overridable ReadOnly Property Item ( _
	localname As String, _
	ns As String _
) As XmlElement

Parameters

localname
Type: System.String

The local name of the element.

ns
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).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft