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
)
Public Overridable Function FileOpen (
fileInfo As FileInfo,
fileAccess As FileAccess,
ByRef errorMessage As String,
fileShare As FileShare,
fileMode As FileMode,
waitForLockMilliseconds As Integer,
useExternalStorage As Boolean,
Optional signalError As Boolean = true
) As Stream
public:
virtual Stream^ FileOpen(
FileInfo^ fileInfo,
FileAccess fileAccess,
String^% errorMessage,
FileShare fileShare,
FileMode fileMode,
int waitForLockMilliseconds,
bool useExternalStorage,
bool signalError = true
)
abstract FileOpen :
fileInfo : FileInfo *
fileAccess : FileAccess *
errorMessage : string byref *
fileShare : FileShare *
fileMode : FileMode *
waitForLockMilliseconds : int *
useExternalStorage : bool *
?signalError : bool
(* Defaults:
let _signalError = defaultArg signalError true
*)
-> Stream
override FileOpen :
fileInfo : FileInfo *
fileAccess : FileAccess *
errorMessage : string byref *
fileShare : FileShare *
fileMode : FileMode *
waitForLockMilliseconds : int *
useExternalStorage : bool *
?signalError : bool
(* Defaults:
let _signalError = defaultArg signalError true
*)
-> Stream
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:
StreamFile stream of opened file
See Also