MainDocumentPart.AddCustomXmlPart-Methode (CustomXmlPartType, String)
Adds a CustomXmlPart to the MainDocumentPart.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Function AddCustomXmlPart ( _
partType As CustomXmlPartType, _
id As String _
) As CustomXmlPart
'Usage
Dim instance As MainDocumentPart
Dim partType As CustomXmlPartType
Dim id As String
Dim returnValue As CustomXmlPart
returnValue = instance.AddCustomXmlPart(partType, _
id)
public CustomXmlPart AddCustomXmlPart(
CustomXmlPartType partType,
string id
)
Parameter
- partType
Typ: DocumentFormat.OpenXml.Packaging.CustomXmlPartType
The part type of the CustomXmlPart.
- id
Typ: System.String
The relationship id.
Rückgabewert
Typ: DocumentFormat.OpenXml.Packaging.CustomXmlPart
The newly added part.