BackgroundTaskBuilder.AddCondition(IBackgroundCondition) Method

Definition

Adds a condition to a background task.

public:
 virtual void AddCondition(IBackgroundCondition ^ condition) = AddCondition;
void AddCondition(IBackgroundCondition const& condition);
public void AddCondition(IBackgroundCondition condition);
function addCondition(condition)
Public Sub AddCondition (condition As IBackgroundCondition)

Parameters

condition
IBackgroundCondition

An instance of a SystemCondition object.

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.

Applies to