TaskServiceExtensionsGetFilteredAvailableActions(TaskService, AvailableActions, Boolean, PowerShellActionPlatformOption) Method

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


Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.11.1
public static AvailableActions GetFilteredAvailableActions(
	this TaskService ts,
	AvailableActions availableActions,
	bool useUnifiedSchedulingEngine = false,
	PowerShellActionPlatformOption psOption = PowerShellActionPlatformOption.All


ts  TaskService
The TaskService instance.
availableActions  AvailableActions
The available actions.
useUnifiedSchedulingEngine  Boolean  (Optional)
if set to true assume the task will use the Unified Scheduling Engine.
psOption  PowerShellActionPlatformOption  (Optional)
The PowerShell conversion options to assume are in place.

Return Value

The filtered set of available actions.

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