Share via


OpenXmlPartContainer.GetIdOfPart Method

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
The relationship ID of the part.

Exceptions

Exception Condition
ArgumentNullException

Thrown when "part" is null reference.

ArgumentOutOfRangeException

Thrown when the part does not exist.

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

DocumentFormat.OpenXml.Packaging Namespace