次の方法で共有


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

'宣言
Public Function AddExtendedPart ( _
    relationshipType As String, _
    contentType As String, _
    targetExt As String, _
    rId As String _
) As ExtendedPart
'使用
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