This documentation is archived and is not being maintained.

OpenXmlPartContainer.GetExternalRelationship Method

Gets the sepcified ExternalRelationship.

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

public ExternalRelationship GetExternalRelationship(
	string id
)

Parameters

id
Type: System.String
The relationship ID of the ExternalRelationship.

Return Value

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

ExceptionCondition
ArgumentNullException

Thrown when the "id" parameter is null.

KeyNotFoundException

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

Show: