Поделиться через


OpenXmlPackage.CreateMediaDataPart Method (MediaDataPartType)

Creates a new MediaDataPart to the document package.

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

Syntax

'Declaration
Public Function CreateMediaDataPart ( _
    mediaDataPartType As MediaDataPartType _
) As MediaDataPart
'Usage
Dim instance As OpenXmlPackage
Dim mediaDataPartType As MediaDataPartType
Dim returnValue As MediaDataPart

returnValue = instance.CreateMediaDataPart(mediaDataPartType)
public MediaDataPart CreateMediaDataPart(
    MediaDataPartType mediaDataPartType
)

Parameters

Return Value

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

See Also

Reference

OpenXmlPackage Class

OpenXmlPackage Members

CreateMediaDataPart Overload

DocumentFormat.OpenXml.Packaging Namespace