Freigeben über


OpenXmlPartContainer.DeletePart-Methode (String)

Deletes the specified child part from this part.

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

Syntax

'Declaration
Public Function DeletePart ( _
    id As String _
) As Boolean
'Usage
Dim instance As OpenXmlPartContainer
Dim id As String
Dim returnValue As Boolean

returnValue = instance.DeletePart(id)
public bool DeletePart(
    string id
)

Parameter

  • id
    Typ: System.String
    The relationship ID of the part to be deleted.

Rückgabewert

Typ: System.Boolean
true if the part is successfully removed; otherwise, false. This method also returns false if the part was not found.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Thrown when "id" is null reference.

Siehe auch

Referenz

OpenXmlPartContainer Klasse

OpenXmlPartContainer-Member

DeletePart Überladung

DocumentFormat.OpenXml.Packaging-Namespace