Aracılığıyla paylaş


XmlElement.GetAttributeNodeNS(Object, String) Method

Definition

Returns the specified attribute from the specified namespace.

public:
 virtual XmlAttribute ^ GetAttributeNodeNS(Platform::Object ^ namespaceUri, Platform::String ^ localName) = GetAttributeNodeNS;
XmlAttribute GetAttributeNodeNS(IInspectable const& namespaceUri, winrt::hstring const& localName);
public XmlAttribute GetAttributeNodeNS(object namespaceUri, string localName);
function getAttributeNodeNS(namespaceUri, localName)
Public Function GetAttributeNodeNS (namespaceUri As Object, localName As String) As XmlAttribute

Parameters

namespaceUri
Object

Platform::Object

IInspectable

The namespace of the attribute to get.

localName
String

Platform::String

winrt::hstring

The name of the attribute without the namespace prefix.

Returns

The returned attribute pointer.

Examples

var width = element.GetAttributeNodeNS("http://www.w3.org/2000/svg", "width");
auto width = element.GetAttributeNodeNS(winrt::box_value(L"http://www.w3.org/2000/svg"), L"width");

Applies to