다음을 통해 공유


MediaDataPart Class

Definition

Represents a media (Audio, Video) data part in the document.

public class MediaDataPart : DocumentFormat.OpenXml.Packaging.DataPart
type MediaDataPart = class
    inherit DataPart
Public Class MediaDataPart
Inherits DataPart
Inheritance
MediaDataPart

Properties

ContentType

Gets the content type (MIME type) of the data in the part.

(Inherited from DataPart)
OpenXmlPackage

Gets the OpenXmlPackage which contains the current part.

(Inherited from DataPart)
Uri

Gets the internal part path in the package.

(Inherited from DataPart)

Methods

FeedData(Stream)

Feeds data into the part stream. The stream of the part will be truncated at first.

(Inherited from DataPart)
GetDataPartReferenceRelationships()

Enumerates all DataPartReferenceRelationships that reference the current data part.

(Inherited from DataPart)
GetStream()

Returns the content data stream of the current part.

(Inherited from DataPart)
GetStream(FileMode, FileAccess)

Returns the content stream of the part that was opened by using a specified FileMode and FileAccess.

(Inherited from DataPart)
GetStream(FileMode)

Returns the content stream that was opened using a specified I/O FileMode.

(Inherited from DataPart)
ThrowIfObjectDisposed()

Indicates whether the object is destroyed (deleted from the package).

(Inherited from DataPart)

Applies to