Freigeben über


OpenXmlPackage.CreateMediaDataPart-Methode (String)

Creates a new MediaDataPart to the document package.

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

Syntax

'Declaration
Public Function CreateMediaDataPart ( _
    contentType As String _
) As MediaDataPart
'Usage
Dim instance As OpenXmlPackage
Dim contentType As String
Dim returnValue As MediaDataPart

returnValue = instance.CreateMediaDataPart(contentType)
public MediaDataPart CreateMediaDataPart(
    string contentType
)

Parameter

Rückgabewert

Typ: DocumentFormat.OpenXml.Packaging.MediaDataPart
The added MediaDataPart.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Thrown when contentType is null reference.

Siehe auch

Referenz

OpenXmlPackage Klasse

OpenXmlPackage-Member

CreateMediaDataPart Überladung

DocumentFormat.OpenXml.Packaging-Namespace