Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RemoveAttribute method

OpenXmlElement.RemoveAttribute method

Removes the attribute from the current element.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public void RemoveAttribute(
	string localName,
	string namespaceUri
)

Parameters

localName
Type: System.String

The local name of the attribute.

namespaceUri
Type: System.String

The namesapce URI of the attribute.

ExceptionCondition
ArgumentOutOfRangeException

Thrown when the localName is empty.

Show:
© 2015 Microsoft