Click or drag to resize
Task Scheduler Managed Class Library

TaskServiceExtensionsGetFilteredAvailableActions Method (TaskService, AvailableActions, Boolean, PowerShellActionPlatformOption)

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.10.1
Syntax
public static AvailableActions GetFilteredAvailableActions(
	this TaskService ts,
	AvailableActions availableActions,
	bool useUnifiedSchedulingEngine = false,
	PowerShellActionPlatformOption psOption = PowerShellActionPlatformOption.All
)
Request Example View Source

Parameters

ts
Type: Microsoft.Win32.TaskSchedulerTaskService
The TaskService instance.
availableActions
Type: Microsoft.Win32.TaskSchedulerAvailableActions
The available actions.
useUnifiedSchedulingEngine (Optional)
Type: SystemBoolean
if set to true assume the task will use the Unified Scheduling Engine.
psOption (Optional)
Type: Microsoft.Win32.TaskSchedulerPowerShellActionPlatformOption
The PowerShell conversion options to assume are in place.

Return Value

Type: AvailableActions
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