Freigeben über


OpenXmlPartContainer.GetExternalRelationship-Methode

Gets the sepcified ExternalRelationship.

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

Syntax

'Declaration
Public Function GetExternalRelationship ( _
    id As String _
) As ExternalRelationship
'Usage
Dim instance As OpenXmlPartContainer
Dim id As String
Dim returnValue As ExternalRelationship

returnValue = instance.GetExternalRelationship(id)
public ExternalRelationship GetExternalRelationship(
    string id
)

Parameter

  • id
    Typ: System.String
    The relationship ID of the ExternalRelationship.

Rückgabewert

Typ: DocumentFormat.OpenXml.Packaging.ExternalRelationship
Returns the ExternalRelationship which has the relationship ID.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Thrown when the "id" parameter is null.

KeyNotFoundException

Thrown when there is no ExternalRelationship with the specified relationship ID.

Siehe auch

Referenz

OpenXmlPartContainer Klasse

OpenXmlPartContainer-Member

DocumentFormat.OpenXml.Packaging-Namespace