Summary
Adds to the task's criteria.
- Namespace
- Cake
.Core - Containing Type
- CakeTaskExtensions
Syntax
public static void AddCriteria(this CakeTask task, Func<ICakeContext, bool> predicate, string message = null)
Parameters
Name | Type | Description |
---|---|---|
task | CakeTask | The task. |
predicate | Func |
The criteria predicate. |
message | string | The criteria message if skipped. |
Return Value
Type | Description |
---|---|
void |