PathGetPathRoot Method (String) |
Gets the root directory information of the specified path.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string GetPathRoot(
string path
)
Public Shared Function GetPathRoot (
path As String
) As String
public:
static String^ GetPathRoot(
String^ path
)
static member GetPathRoot :
path : string -> string
Parameters
- path
- Type: SystemString
The path from which to obtain root directory information.
Return Value
Type:
String
Returns the root directory of
path, such as "C:\",
or
if
path is
,
or an empty string if
path does not contain root directory information.
Exceptions See Also