Summary
Determines whether a path string is absolute.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- PathFunctions
Syntax
[Function("is-path-rooted")]
public static bool IsPathRooted(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 to test. |
Return Value
| Type | Description |
|---|---|
| bool |
true if path contains an absolute path;
otherwise, false.
|
