OpenXmlPartContainer.GetIdOfPart Method
Gets the relationship ID of the part.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
Public Function GetIdOfPart ( _
part As OpenXmlPart _
) As String
用法
Dim instance As OpenXmlPartContainer
Dim part As OpenXmlPart
Dim returnValue As String
returnValue = instance.GetIdOfPart(part)
public string GetIdOfPart(
OpenXmlPart part
)
Parameters
- part
Type: DocumentFormat.OpenXml.Packaging.OpenXmlPart
The part.
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. |