Freigeben über


OpenXmlPartContainer.GetPartById-Methode

Gets the child part through the relationship ID.

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

Syntax

'Declaration
Public Function GetPartById ( _
    id As String _
) As OpenXmlPart
'Usage
Dim instance As OpenXmlPartContainer
Dim id As String
Dim returnValue As OpenXmlPart

returnValue = instance.GetPartById(id)
public OpenXmlPart GetPartById(
    string id
)

Parameter

Rückgabewert

Typ: DocumentFormat.OpenXml.Packaging.OpenXmlPart
The part.

Ausnahmen

Ausnahme Bedingung
ArgumentOutOfRangeException

Thrown when the part with the specified id does not exist.

Siehe auch

Referenz

OpenXmlPartContainer Klasse

OpenXmlPartContainer-Member

DocumentFormat.OpenXml.Packaging-Namespace