OpenXmlPartContainer.DeleteExternalRelationship Method (String)

Deletes the sepcified ExternalRelationship.

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

Syntax

声明
Public Sub DeleteExternalRelationship ( _
    id As String _
)
用法
Dim instance As OpenXmlPartContainer
Dim id As String

instance.DeleteExternalRelationship(id)
public void DeleteExternalRelationship(
    string id
)

Parameters

  • id
    Type: System.String
    The relationship ID of the ExternalRelationship.

Exceptions

Exception Condition
ArgumentNullException

Thrown when the "id" parameter is null.

KeyNotFoundException

Thrown when there is no ExternalRelationship with the specified relationship ID.

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

DeleteExternalRelationship Overload

DocumentFormat.OpenXml.Packaging Namespace