PackagePart.GetStream Method (FileMode, FileAccess)
Assembly: WindowsBase (in WindowsBase.dll)
The I/O mode in which to open the content stream.
The access permissions to use in opening the content stream.
Return ValueType: System.IO.Stream
The content stream for the part.
mode or access is not compatible with the package and part stream.
The stream object returned by the GetStreamCore method of the derived subclass is null.
Notes to Implementers:
Notes to Callers:
GetStreamCore method to actually open and return the part data stream based on the physical format implemented in the derived class.internally calls the derived
By default, the ZipPackagePart subclass implementation of the abstract PackagePart class is provided and used. In the default operation, internally calls GetStreamCore of the ZipPackagePart class to open and return the part data stream from a ZIP file.
Available since 3.0