OpenXmlPartContainer.DeleteReferenceRelationship-Methode (ReferenceRelationship)
Deletes the specified reference relationship.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Sub DeleteReferenceRelationship ( _
referenceRelationship As ReferenceRelationship _
)
'Usage
Dim instance As OpenXmlPartContainer
Dim referenceRelationship As ReferenceRelationship
instance.DeleteReferenceRelationship(referenceRelationship)
public void DeleteReferenceRelationship(
ReferenceRelationship referenceRelationship
)
Parameter
- referenceRelationship
Typ: DocumentFormat.OpenXml.Packaging.ReferenceRelationship
The reference relationship to be deleted.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | Thrown when "referenceRelationship" is null reference. |
InvalidOperationException | Thrown when the reference relationship is not referenced by this part. |