XmlElement.SetAttributeNS(Object, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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");