Freigeben über


OpenXmlElement.RemoveAttribute-Methode

Remove the attribute from the element.

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

Syntax

'Declaration
Public Sub RemoveAttribute ( _
    localName As String, _
    namespaceUri As String _
)
'Usage
Dim instance As OpenXmlElement
Dim localName As String
Dim namespaceUri As String

instance.RemoveAttribute(localName, namespaceUri)
public void RemoveAttribute(
    string localName,
    string namespaceUri
)

Parameter

  • namespaceUri
    Typ: System.String
    The namesapce URI of the attribute.

Ausnahmen

Ausnahme Bedingung
ArgumentOutOfRangeException

Thrown when the localName is empty.

Siehe auch

Referenz

OpenXmlElement Klasse

OpenXmlElement-Member

DocumentFormat.OpenXml-Namespace