OpenXmlPartContainer.DeleteReferenceRelationship Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeleteReferenceRelationship(ReferenceRelationship) |
Deletes the specified reference relationship. |
DeleteReferenceRelationship(String) |
Deletes the specified reference relationship. |
DeleteReferenceRelationship(ReferenceRelationship)
Deletes the specified reference relationship.
public void DeleteReferenceRelationship (DocumentFormat.OpenXml.Packaging.ReferenceRelationship referenceRelationship);
member this.DeleteReferenceRelationship : DocumentFormat.OpenXml.Packaging.ReferenceRelationship -> unit
Public Sub DeleteReferenceRelationship (referenceRelationship As ReferenceRelationship)
Parameters
- referenceRelationship
- ReferenceRelationship
The reference relationship to be deleted.
Exceptions
Thrown when "referenceRelationship" is null reference.
Thrown when the reference relationship is not referenced by this part.
Applies to
DeleteReferenceRelationship(String)
Deletes the specified reference relationship.
public void DeleteReferenceRelationship (string id);
member this.DeleteReferenceRelationship : string -> unit
Public Sub DeleteReferenceRelationship (id As String)
Parameters
- id
- String
The relationship ID of the ReferenceRelationship.
Exceptions
Thrown when the "id" parameter is null.
Thrown when there is no ReferenceRelationship with the specified relationship ID.