XmlElement.SetAttribute(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.
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.