 | 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
Syntaxpublic static AvailableActions GetFilteredAvailableActions(
this TaskService ts,
AvailableActions availableActions,
bool useUnifiedSchedulingEngine = false,
PowerShellActionPlatformOption psOption = PowerShellActionPlatformOption.All
)
<ExtensionAttribute>
Public Shared Function GetFilteredAvailableActions (
ts As TaskService,
availableActions As AvailableActions,
Optional useUnifiedSchedulingEngine As Boolean = false,
Optional psOption As PowerShellActionPlatformOption = PowerShellActionPlatformOption.All
) As AvailableActions
public:
[ExtensionAttribute]
static AvailableActions GetFilteredAvailableActions(
TaskService^ ts,
AvailableActions availableActions,
bool useUnifiedSchedulingEngine = false,
PowerShellActionPlatformOption psOption = PowerShellActionPlatformOption::All
)
Request Example
View SourceParameters
- 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:
AvailableActionsThe 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