DirectoryGetParent Method (KernelTransaction, String) |
[AlphaFS] Retrieves the parent directory of the specified path, including both absolute and relative paths.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static DirectoryInfo GetParent(
KernelTransaction transaction,
string path
)
Public Shared Function GetParent (
transaction As KernelTransaction,
path As String
) As DirectoryInfo
public:
static DirectoryInfo^ GetParent(
KernelTransaction^ transaction,
String^ path
)
static member GetParent :
transaction : KernelTransaction *
path : string -> DirectoryInfo
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The path for which to retrieve the parent directory.
Return Value
Type:
DirectoryInfoThe parent directory, or
if
path is the root directory, including the root of a UNC server or share name.
See Also