DirectoryGetDirectoryRoot Method (String, PathFormat) |
Returns the volume information, root information, or both for the specified path.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntaxpublic static string GetDirectoryRoot(
string path,
PathFormat pathFormat
)
Public Shared Function GetDirectoryRoot (
path As String,
pathFormat As PathFormat
) As String
public:
static String^ GetDirectoryRoot(
String^ path,
PathFormat pathFormat
)
static member GetDirectoryRoot :
path : string *
pathFormat : PathFormat -> string
Parameters
- path
- Type: SystemString
The path of a file or directory. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
StringThe volume information, root information, or both for the specified path, or
if
path path does not contain root directory information.
Exceptions
See Also