Partager via


PartExtensionProvider.AddPartExtension Method

Add a part extension for the specified ContentType

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

Syntax

'Declaration
Public Sub AddPartExtension ( _
    contentType As String, _
    partExtension As String _
)
'Usage
Dim instance As PartExtensionProvider
Dim contentType As String
Dim partExtension As String

instance.AddPartExtension(contentType, _
    partExtension)
public void AddPartExtension(
    string contentType,
    string partExtension
)

Parameters

  • partExtension
    Type: System.String
    Part Extension (".xml") to be used for the part with the specified content type.

See Also

Reference

PartExtensionProvider Class

PartExtensionProvider Members

DocumentFormat.OpenXml.Packaging Namespace