Share via


XmlElement.SetAttributeNS(Object, String, String) Method

Definition

Sets the value of the named attribute in the given namespace.

public:
 virtual void SetAttributeNS(Platform::Object ^ namespaceUri, Platform::String ^ qualifiedName, Platform::String ^ value) = SetAttributeNS;
void SetAttributeNS(IInspectable const& namespaceUri, winrt::hstring const& qualifiedName, winrt::hstring const& value);
public void SetAttributeNS(object namespaceUri, string qualifiedName, string value);
function setAttributeNS(namespaceUri, qualifiedName, value)
Public Sub SetAttributeNS (namespaceUri As Object, qualifiedName As String, value As String)

Parameters

namespaceUri
Object

Platform::Object

IInspectable

The namespace of the attribute being set.

qualifiedName
String

Platform::String

winrt::hstring

The name of the attribute being set.

value
String

Platform::String

winrt::hstring

The new value for the attribute.

Examples

element.SetAttributeNS("http://www.w3.org/2000/svg", "width", "3");
element.SetAttributeNS(winrt::box_value(L"http://www.w3.org/2000/svg"), L"width", L"3");

Applies to