Assembly: WindowsBase (in WindowsBase.dll)
- Type: System.IO.FileMode
The I/O mode in which to open the content stream.
- Type: System.IO.FileAccess
The access permissions to use in opening the content stream.
Return ValueType: System.IO.Stream
The content data stream of the part.
Applications should not call directly, but instead should call GetStream.Notes to Implementers
The derived implementation should make no assumptions about the order or operations performed by the GetStream method that calls it.Notes to Callers
The derived method is called by the GetStream methods to open and return the part data stream based on the physical format implemented in the derived class.
By default, the ZipPackagePart subclass implementation of the abstract PackagePart class is provided and used. In the default operation, GetStream internally calls of the ZipPackagePart class to open and return the part data stream from a ZIP file.