FileOpenRead Method (KernelTransaction, String) |
[AlphaFS] Opens an existing file for reading.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static FileStream OpenRead(
KernelTransaction transaction,
string path
)
Public Shared Function OpenRead (
transaction As KernelTransaction,
path As String
) As FileStream
public:
static FileStream^ OpenRead(
KernelTransaction^ transaction,
String^ path
)
static member OpenRead :
transaction : KernelTransaction *
path : string -> FileStream
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to be opened for reading.
Return Value
Type:
FileStreamA read-only
FileStream on the specified path.
Remarks
This method is equivalent to the FileStream(string, FileMode, FileAccess, FileShare) constructor overload with a
FileMode value of Open, a
FileAccess value of Read and a
FileShare value of Read.
See Also