Click or drag to resize

SessionBaseFileOpen Method (Database, FileAccess, String, FileMode, Boolean, Int32, Boolean)

Opens a Databasefile for read/update. Internal use only.

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: (11.1)
public virtual Stream FileOpen(
	Database db,
	FileAccess fileAccess,
	ref string errorMessage,
	FileMode fileMode = FileMode.Open,
	bool excusiveAccess = false,
	int waitOverride = -1,
	bool signalError = true


Type: VelocityDbDatabase
Database for which we want to open Stream
Type: System.IOFileAccess
Opening for read or update?
Type: SystemString
Used for passing error messages back to caller
fileMode (Optional)
Type: System.IOFileMode
FileMode used for opening file
excusiveAccess (Optional)
Type: SystemBoolean
Do we want exclusive access to file?
waitOverride (Optional)
Type: SystemInt32
How long are we willing to wait for a file lock to clear?
signalError (Optional)
Type: SystemBoolean
Throw exception if we can't open file within wait time?

Return Value

Type: Stream
A Stream used for accessing Database data
See Also