Click or drag to resize

Item.OpenStream Method (FileMode, FileAccess, FileShare, Boolean)

Opens a stream from the item.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public Stream OpenStream(
	FileMode mode = FileMode.Open,
	FileAccess access = FileAccess.Read,
	FileShare share = FileShare.Read,
	bool throwOnError = true
)

Parameters

mode (Optional)
Type: System.IO.FileMode
The A constant that determines how to open or create the file.
access (Optional)
Type: System.IO.FileAccess
A constant that determines how the file can be accessed by the FileStream object.
share (Optional)
Type: System.IO.FileShare
A constant that determines how the file will be shared by processes.
throwOnError (Optional)
Type: System.Boolean
true to throw error; otherwise false.

Return Value

Type: Stream
An instance of Stream or null if an error occurred.
See Also