Click or drag to resize

SessionBaseFileOpen Method (FileInfo, FileAccess, String, FileShare, FileMode, Int32, Boolean, Boolean)

For internal use.

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public virtual Stream FileOpen(
	FileInfo fileInfo,
	FileAccess fileAccess,
	ref string errorMessage,
	FileShare fileShare,
	FileMode fileMode,
	int waitForLockMilliseconds,
	bool useExternalStorage,
	bool signalError = true
)

Parameters

fileInfo
Type: System.IOFileInfo
Info about file to open
fileAccess
Type: System.IOFileAccess
Option for file access
errorMessage
Type: SystemString
Error messages stored in this string
fileShare
Type: System.IOFileShare
Option for file share
fileMode
Type: System.IOFileMode
Option for file mode
waitForLockMilliseconds
Type: SystemInt32
How long to wait for file to become available for open
useExternalStorage
Type: SystemBoolean
Parameter used for WindowsPhone API for accessing memory cards
signalError (Optional)
Type: SystemBoolean
If true, signal error if we fail to open file; otherwise ignore errors and return null

Return Value

Type: Stream
File stream of opened file
See Also