GetStream Method (FileMode, FileAccess)
Collapse the table of content
Expand the table of content

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
)

Parameters

mode
Type: System.IO.FileMode

The file mode in which to open the stream.

access
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
Available since 3.0
Return to top
Show:
© 2016 Microsoft