Summary
Gets the root directory of the specified path.
Syntax
[Function("get-path-root")]
public static string GetPathRoot(string path)
Attributes
Type |
Description |
FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
Name |
Type |
Description |
path |
string |
The path from which to obtain root directory information. |
Return Value
Type |
Description |
string |
A string containing the root directory of
path, such as "C:\", or an empty string
if path does not contain root directory information.
|