Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XmlNamedNodeMap.GetNamedItem Method (String, String)

Retrieves a node with the matching LocalName and NamespaceURI.

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

abstract GetNamedItem : 
        localName:string * 
        namespaceURI:string -> XmlNode  
override GetNamedItem : 
        localName:string * 
        namespaceURI:string -> XmlNode

Parameters

localName
Type: System.String

The local name of the node to retrieve.

namespaceURI
Type: System.String

The namespace Uniform Resource Identifier (URI) of the node to retrieve.

Return Value

Type: System.Xml.XmlNode
An XmlNode with the matching local name and namespace URI or a null reference (Nothing in Visual Basic) if a matching node was not found.

.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