OpenXmlPartContainer.DeleteReferenceRelationship Method (ReferenceRelationship)
Deletes the specified reference relationship.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Декларация
Public Sub DeleteReferenceRelationship ( _
referenceRelationship As ReferenceRelationship _
)
'Применение
Dim instance As OpenXmlPartContainer
Dim referenceRelationship As ReferenceRelationship
instance.DeleteReferenceRelationship(referenceRelationship)
public void DeleteReferenceRelationship(
ReferenceRelationship referenceRelationship
)
Parameters
- referenceRelationship
Type: DocumentFormat.OpenXml.Packaging.ReferenceRelationship
The reference relationship to be deleted.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when "referenceRelationship" is null reference. |
InvalidOperationException | Thrown when the reference relationship is not referenced by this part. |