OpenXmlPartContainer.GetReferenceRelationship-Methode
Gets the sepcified ReferenceRelationship.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Function GetReferenceRelationship ( _
id As String _
) As ReferenceRelationship
'Usage
Dim instance As OpenXmlPartContainer
Dim id As String
Dim returnValue As ReferenceRelationship
returnValue = instance.GetReferenceRelationship(id)
public ReferenceRelationship GetReferenceRelationship(
string id
)
Parameter
- id
Typ: System.String
The relationship ID of the ReferenceRelationship.
Rückgabewert
Typ: DocumentFormat.OpenXml.Packaging.ReferenceRelationship
Returns the ReferenceRelationship which has the relationship ID.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | Thrown when the "id" parameter is null. |
KeyNotFoundException | Thrown when there is no ReferenceRelationship with the specified relationship ID. |