TaskServiceExtensionsGetFilteredAvailableTriggers(TaskService, AvailableTriggers, Boolean) Method

Filtered the supplied available triggers based on this version of the Task Scheduler and options that could be set on the TaskDefinition.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.11.0
public static AvailableTriggers GetFilteredAvailableTriggers(
	this TaskService ts,
	AvailableTriggers availableTriggers,
	bool useUnifiedSchedulingEngine = false
)

Parameters

ts  TaskService
The TaskService instance.
availableTriggers  AvailableTriggers
The available triggers.
useUnifiedSchedulingEngine  Boolean  (Optional)
if set to true assume the task will use the Unified Scheduling Engine.

Return Value

AvailableTriggers
The filtered set of available triggers.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TaskService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also