NAnt SDK Documentation - v0.92 |

# PathFunctions.IsPathRooted Method

Determines whether a path string is absolute.

[Visual Basic]
<Function(Name:="is-path-rooted")>
Public Shared Function IsPathRooted( _
ByVal path As String _
) As Boolean
[C#]
[Function(Name="is-path-rooted")]
public static bool IsPathRooted(
string path
);

#### Parameters

path
  The path to test.

#### Return Value

true if path contains an absolute path; otherwise, false.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | path contains one or more invalid characters.

#### See Also

PathFunctions Class | NAnt.Core.Functions Namespace