Share via


XmlNamedNodeMap.RemoveNamedItemNS(Object, String) Method

Definition

Removes an item that is specified by a namespace and local name.

public:
 virtual IXmlNode ^ RemoveNamedItemNS(Platform::Object ^ namespaceUri, Platform::String ^ name) = RemoveNamedItemNS;
IXmlNode RemoveNamedItemNS(IInspectable const& namespaceUri, winrt::hstring const& name);
public IXmlNode RemoveNamedItemNS(object namespaceUri, string name);
function removeNamedItemNS(namespaceUri, name)
Public Function RemoveNamedItemNS (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 node removed from the collection. This method returns Null if the named node is not an attribute.

Examples

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

Applies to