XmlNamedNodeMap.GetNamedItemNS(Object, String) 方法

定义

检索具有指定命名空间和名称的属性。

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

参数

namespaceUri
Object

Platform::Object

IInspectable

特性的命名空间名称。

name
String

Platform::String

winrt::hstring

属性名。

返回

具有指定命名空间和名称的属性。 如果属性节点不在此集合中,则此方法返回 Null。

示例

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

适用于