DataPart Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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). |