A task may have multiple conditions. You specify a condition by creating an instance of the SystemCondition class and passing a SystemConditionType to the constructor. You then add the condition to the task using the AddCondition method.
var condition = new SystemCondition(SystemConditionType.InternetAvailable); builder.AddCondition(condition);
The task in the example app will only run if the Internet connection is available. Although it obviously doesn’t require an Internet connection, this illustrates how the conditions work. A full list of conditions is available online at http://bit.ly/1l6qSLq.