XmlElement::SetAttribute Method (String^, String^, String^)

 

Sets the value of the attribute with the specified local name and namespace URI.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public:
virtual String^ SetAttribute(
	String^ localName,
	String^ namespaceURI,
	String^ value
)

Parameters

localName
Type: System::String^

The local name of the attribute.

namespaceURI
Type: System::String^

The namespace URI of the attribute.

value
Type: System::String^

The value to set for the attribute.

Return Value

Type: System::String^

The attribute value.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: