NAnt SDK Documentation - v0.85-nightly-2005-11-09

DirectoryFunctions.GetDirectoryRoot Method 

[This is preliminary documentation and subject to change.]

Returns the volume information, root information, or both for the specified path.

[Visual Basic]
<Function(Name:="get-directory-root")>
Public Function GetDirectoryRoot( _
   ByVal path As String _
) As String
[C#]
[Function(Name="get-directory-root")]
public string GetDirectoryRoot(
   string path
);

Parameters

path
The path for which to retrieve the parent directory.

Return Value

A string containing the volume information, root information, or both for the specified path.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.DirectoryFunctions.GetDirectoryRoot(System.String)

Exceptions

Exception Type Condition
ArgumentException path is a zero-length string, contains only white space, or contains one or more invalid characters.
PathTooLongException The specified path, file name, or both exceed the system-defined maximum length.

See Also

DirectoryFunctions Class | NAnt.Core.Functions Namespace