OpenXmlPartContainer.GetIdOfPart Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets the relationship ID of the part.

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

Syntax

'Declaration
Public Function GetIdOfPart ( _
    part As OpenXmlPart _
) As String
'Usage
Dim instance As OpenXmlPartContainer
Dim part As OpenXmlPart
Dim returnValue As String

returnValue = instance.GetIdOfPart(part)
public string GetIdOfPart(
    OpenXmlPart part
)

Parameters

Return Value

Type: System.String
Returns the relationship ID of the part.

Exceptions

Exception Condition
ArgumentNullException

Throws an exception when the part has a null reference value.

ArgumentOutOfRangeException

Throws an exception when the part does not exist.

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

DocumentFormat.OpenXml.Packaging Namespace