XmlNamedNodeMap.GetNamedItemNS(Object, String) Methode

Definition

Ruft das Attribut mit dem angegebenen Namespace und Namen ab.

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

Parameter

namespaceUri
Object

Platform::Object

IInspectable

Der Namespacename des Attributs.

name
String

Platform::String

winrt::hstring

Der Name des Attributs.

Gibt zurück

Das Attribut mit dem angegebenen Namespace und Namen. Diese Methode gibt NULL zurück, wenn sich der Attributknoten nicht in dieser Auflistung befindet.

Beispiele

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");

Gilt für: