Freigeben über


OpenXmlPartContainer.AddExtendedPart-Methode (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 _
) As ExtendedPart
'Usage
Dim instance As OpenXmlPartContainer
Dim relationshipType As String
Dim contentType As String
Dim targetExt As String
Dim returnValue As ExtendedPart

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

Parameter

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

Rückgabewert

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

Siehe auch

Referenz

OpenXmlPartContainer Klasse

OpenXmlPartContainer-Member

AddExtendedPart Überladung

DocumentFormat.OpenXml.Packaging-Namespace