Summary
Checks whether the specified task exists.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- TaskFunctions
Syntax
[Function("exists")]
public bool Exists(string name)
Attributes
| Type | Description |
|---|---|
| FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The task to test. |
Return Value
| Type | Description |
|---|---|
| bool |
true if the specified task exists; otherwise,
false.
|
