FileReadAllBytesTransacted Method (KernelTransaction, String, PathFormat) |
[AlphaFS] Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static byte[] ReadAllBytesTransacted(
KernelTransaction transaction,
string path,
PathFormat pathFormat
)
Public Shared Function ReadAllBytesTransacted (
transaction As KernelTransaction,
path As String,
pathFormat As PathFormat
) As Byte()
public:
static array<unsigned char>^ ReadAllBytesTransacted(
KernelTransaction^ transaction,
String^ path,
PathFormat pathFormat
)
static member ReadAllBytesTransacted :
transaction : KernelTransaction *
path : string *
pathFormat : PathFormat -> byte[]
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to open for reading. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
ByteA byte array containing the contents of the file.
See Also