BackgroundTaskBuilder.AddCondition(IBackgroundCondition) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.