Freigeben über


XmlElement.SetAttribute(String, String) Methode

Definition

Legt den Wert des benannten Attributs fest.

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)

Parameter

attributeName
String

Platform::String

winrt::hstring

Der Name des erforderlichen Attributs.

attributeValue
String

Platform::String

winrt::hstring

Der neue Wert für das Attribut.

Gilt für: