Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property XmlElement^ default[
	String^ localname,
	String^ ns
] {
	virtual XmlElement^ get(String^ localname, String^ ns);
}

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft