Click or drag to resize

SessionNoServerSharedFileOpen Method

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

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

Parameters

db
Type: VelocityDbDatabase
Database for which we want to open Stream
fileAccess
Type: System.IOFileAccess
Opening for read or update?
errorMessage
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