다음을 통해 공유


DataPart Class

Definition

Represents the type of part referenced by a DataPartReferenceRelationship.

public class DataPart
type DataPart = class
Public Class DataPart
Inheritance
DataPart
Derived

Properties

ContentType

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

OpenXmlPackage

Gets the OpenXmlPackage which contains the current part.

Uri

Gets the internal part path in the package.

Methods

FeedData(Stream)

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

GetDataPartReferenceRelationships()

Enumerates all DataPartReferenceRelationships that reference the current data part.

GetStream()

Returns the content data stream of the current part.

GetStream(FileMode, FileAccess)

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

GetStream(FileMode)

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

ThrowIfObjectDisposed()

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

Applies to