Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StreamInfo.GetStream Method (FileMode, FileAccess)

Returns an I/O stream opened in a specified FileMode and with a given FileAccess.

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

public Stream GetStream(
	FileMode mode,
	FileAccess access


Type: System.IO.FileMode

The file mode in which to open the stream.

Type: System.IO.FileAccess

The file access mode in which to read or write to the stream.

Return Value

Type: System.IO.Stream
The I/O stream opened in the specified FileMode and with a given FileAccess.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft