DirectoryCreateDirectoryTransacted Method (KernelTransaction, String, String, PathFormat) |
[AlphaFS] Creates a new directory, with the attributes of a specified template directory.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static DirectoryInfo CreateDirectoryTransacted(
KernelTransaction transaction,
string path,
string templatePath,
PathFormat pathFormat
)
Public Shared Function CreateDirectoryTransacted (
transaction As KernelTransaction,
path As String,
templatePath As String,
pathFormat As PathFormat
) As DirectoryInfo
public:
static DirectoryInfo^ CreateDirectoryTransacted(
KernelTransaction^ transaction,
String^ path,
String^ templatePath,
PathFormat pathFormat
)
static member CreateDirectoryTransacted :
transaction : KernelTransaction *
path : string *
templatePath : string *
pathFormat : PathFormat -> DirectoryInfo
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The directory to create. - templatePath
- Type: SystemString
The path of the directory to use as a template when creating the new directory. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
DirectoryInfoAn object that represents the directory at the specified path. This object is returned regardless of whether a directory at the specified path already exists.
Exceptions See Also