次の方法で共有


OpenXmlPartContainer.DeleteExternalRelationship Method (ExternalRelationship)

Deletes the specified external relationship.

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

Syntax

'宣言
Public Sub DeleteExternalRelationship ( _
    externalRelationship As ExternalRelationship _
)
'使用
Dim instance As OpenXmlPartContainer
Dim externalRelationship As ExternalRelationship

instance.DeleteExternalRelationship(externalRelationship)
public void DeleteExternalRelationship(
    ExternalRelationship externalRelationship
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Thrown when "externalRelationship" is null reference.

InvalidOperationException

Thrown when the external relationship is not referenced by this part.

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

DeleteExternalRelationship Overload

DocumentFormat.OpenXml.Packaging Namespace