OpenXmlPartContainer.GetReferenceRelationship Method

Gets the sepcified ReferenceRelationship.

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

public ReferenceRelationship GetReferenceRelationship(
	string id
)

Parameters

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

Return Value

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

ExceptionCondition
ArgumentNullException

Thrown when the "id" parameter is null.

KeyNotFoundException

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

Community Additions

ADD
Show:
© 2015 Microsoft