SetAttribute Method (String, String, String)
Collapse the table of content
Expand the table of content

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:
© 2016 Microsoft