Partager via


DataPart Members

Include Protected Members
Include Inherited Members

Defines DataPart - different with OpenXmlPart, this type of parts will be referenced by DataPartReferenceRelationship.

The DataPart type exposes the following members.

Properties

  Name Description
Public property ContentType Gets the content type (MIME type) of the data in the part.
Public property OpenXmlPackage Gets the OpenXmlPackage which contains this part.
Public property Uri Gets the internal part path in the package.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method FeedData Feeds data into the part stream. The stream of the part will be truncated at first.
Protected method Finalize (Inherited from Object.)
Public method GetDataPartReferenceRelationships Enumerates all the DataPartReferenceRelationship that referencing this data part.
Public method GetHashCode (Inherited from Object.)
Public method GetStream() Returns the part content data stream.
Public method GetStream(FileMode) Returns the content stream opened in a specified I/O FileMode.
Public method GetStream(FileMode, FileAccess) Returns the part content stream opened with a specified FileMode and FileAccess.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method ThrowIfObjectDisposed Test whether the object is already destroyed (deleted from the package).
Public method ToString (Inherited from Object.)

Top

See Also

Reference

DataPart Class

DocumentFormat.OpenXml.Packaging Namespace