FileCreateTransacted Method (KernelTransaction, String, Int32, FileOptions, FileSecurity) |
Creates or overwrites the specified file, specifying a buffer size and a
FileOptions value that describes how to create or overwrite the file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static FileStream CreateTransacted(
KernelTransaction transaction,
string path,
int bufferSize,
FileOptions options,
FileSecurity fileSecurity
)
Public Shared Function CreateTransacted (
transaction As KernelTransaction,
path As String,
bufferSize As Integer,
options As FileOptions,
fileSecurity As FileSecurity
) As FileStream
public:
static FileStream^ CreateTransacted(
KernelTransaction^ transaction,
String^ path,
int bufferSize,
FileOptions options,
FileSecurity^ fileSecurity
)
static member CreateTransacted :
transaction : KernelTransaction *
path : string *
bufferSize : int *
options : FileOptions *
fileSecurity : FileSecurity -> FileStream
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The name of the file. - bufferSize
- Type: SystemInt32
The number of bytes buffered for reads and writes to the file. - options
- Type: System.IOFileOptions
One of the FileOptions values that describes how to create or overwrite the file. - fileSecurity
- Type: System.Security.AccessControlFileSecurity
One of the FileSecurity values that determines the access control and audit security for the file.
Return Value
Type:
FileStreamA new file with the specified buffer size, file options, and file security.
See Also