Share via


XmlNamedNodeMap.GetNamedItemNS(Object, String) Method

Definition

Retrieves the attribute with the specified namespace and name.

public:
 virtual IXmlNode ^ GetNamedItemNS(Platform::Object ^ namespaceUri, Platform::String ^ name) = GetNamedItemNS;
IXmlNode GetNamedItemNS(IInspectable const& namespaceUri, winrt::hstring const& name);
public IXmlNode GetNamedItemNS(object namespaceUri, string name);
function getNamedItemNS(namespaceUri, name)
Public Function GetNamedItemNS (namespaceUri As Object, name As String) As IXmlNode

Parameters

namespaceUri
Object

Platform::Object

IInspectable

The namespace name of the attribute.

name
String

Platform::String

winrt::hstring

The name of the attribute.

Returns

The attribute with the specified namespace and name. This method returns Null if the attribute node is not in this collection.

Examples

var node = attributes.GetNamedItemNS("http://schemas.microsoft.com/winfx/2006/xaml", "Name");
auto node = attributes.GetNamedItemNS(winrt::box_value(L"http://schemas.microsoft.com/winfx/2006/xaml"), L"Name");

Applies to