StreamInfo.GetStream Method (FileMode)

 

Returns an I/O stream opened in a specified FileMode.

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

public Stream GetStream(
	FileMode mode
)

Parameters

mode
Type: System.IO.FileMode

The file mode in which to open the stream.

Return Value

Type: System.IO.Stream

The stream opened in the specified file mode.

This GetStream method opens the stream with the default storage root FileAccess.

.NET Framework
Available since 3.0
Return to top
Show: