BackgroundTaskBuilder.AddCondition(IBackgroundCondition) BackgroundTaskBuilder.AddCondition(IBackgroundCondition) BackgroundTaskBuilder.AddCondition(IBackgroundCondition) BackgroundTaskBuilder.AddCondition(IBackgroundCondition) BackgroundTaskBuilder.AddCondition(IBackgroundCondition) Method

Definition

Adds a condition to a background task.

public : void AddCondition(IBackgroundCondition condition)
void AddCondition(IBackgroundCondition condition) const;
public void AddCondition(IBackgroundCondition condition)
Public Sub AddCondition(condition As IBackgroundCondition)
backgroundTaskBuilder.addCondition(condition);
Parameters

Remarks

AddCondition can be called more than once to specify more than one condition for a background task. All specified conditions must be met before the system will schedule the task.