XmlElement.SetAttribute(String, String) Method

Definition

Sets the value of the named attribute.

public:
 virtual void SetAttribute(Platform::String ^ attributeName, Platform::String ^ attributeValue) = SetAttribute;
void SetAttribute(winrt::hstring const& attributeName, winrt::hstring const& attributeValue);
public void SetAttribute(string attributeName, string attributeValue);
function setAttribute(attributeName, attributeValue)
Public Sub SetAttribute (attributeName As String, attributeValue As String)

Parameters

attributeName
String

Platform::String

winrt::hstring

The name of the required attribute.

attributeValue
String

Platform::String

winrt::hstring

The new value for the attribute.

Applies to