FileOpenReadTransacted Method (KernelTransaction, String, PathFormat) |
[AlphaFS] Opens an existing file for reading.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static FileStream OpenReadTransacted(
KernelTransaction transaction,
string path,
PathFormat pathFormat
)
Public Shared Function OpenReadTransacted (
transaction As KernelTransaction,
path As String,
pathFormat As PathFormat
) As FileStream
public:
static FileStream^ OpenReadTransacted(
KernelTransaction^ transaction,
String^ path,
PathFormat pathFormat
)
static member OpenReadTransacted :
transaction : KernelTransaction *
path : string *
pathFormat : PathFormat -> FileStream
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to be opened for reading. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
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