Skip to main content
PackagePartGetStream Method
 

Returns the part content data stream.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

NameDescription
System_CAPS_pubmethod GetStream

Returns the part content data stream.

System_CAPS_pubmethod GetStream

Returns the content stream opened in a specified I/O FileMode.

System_CAPS_pubmethod GetStream

Returns the part content stream opened with a specified FileMode and FileAccess.

Notes to Callers:

GetStream internally calls the derived GetStreamCore method to actually 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 GetStreamCore of the ZipPackagePart class to open and return the part data stream from a ZIP file.

Return to top