Compartilhar via


OpenXmlPartContainer.AddExtendedPart Method (String, String, String, String)

Adds an extended part ( Application specific part )

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

Syntax

'Declaration
Public Function AddExtendedPart ( _
    relationshipType As String, _
    contentType As String, _
    targetExt As String, _
    rId As String _
) As ExtendedPart
'Usage
Dim instance As OpenXmlPartContainer
Dim relationshipType As String
Dim contentType As String
Dim targetExt As String
Dim rId As String
Dim returnValue As ExtendedPart

returnValue = instance.AddExtendedPart(relationshipType, _
    contentType, targetExt, rId)
public ExtendedPart AddExtendedPart(
    string relationshipType,
    string contentType,
    string targetExt,
    string rId
)

Parameters

  • relationshipType
    Type: System.String
    The relationship type of the part.
  • targetExt
    Type: System.String
    The desired part name extension in the package.

Return Value

Type: DocumentFormat.OpenXml.Packaging.ExtendedPart
The new ExtendedPart.

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

AddExtendedPart Overload

DocumentFormat.OpenXml.Packaging Namespace