 | TaskServiceExtensionsGetFilteredAvailableTriggers Method (TaskDefinition, AvailableTriggers, Version, Boolean) |
Filtered the supplied available triggers based on this
TaskDefinition and the version of the Task Scheduler.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.10.1
Syntaxpublic static AvailableTriggers GetFilteredAvailableTriggers(
this TaskDefinition td,
AvailableTriggers availableTriggers,
Version taskSchedulerVersion,
bool showCustom = false
)
<ExtensionAttribute>
Public Shared Function GetFilteredAvailableTriggers (
td As TaskDefinition,
availableTriggers As AvailableTriggers,
taskSchedulerVersion As Version,
Optional showCustom As Boolean = false
) As AvailableTriggers
public:
[ExtensionAttribute]
static AvailableTriggers GetFilteredAvailableTriggers(
TaskDefinition^ td,
AvailableTriggers availableTriggers,
Version^ taskSchedulerVersion,
bool showCustom = false
)
Request Example
View SourceParameters
- td
- Type: Microsoft.Win32.TaskSchedulerTaskDefinition
The TaskDefinition instance. - availableTriggers
- Type: Microsoft.Win32.TaskSchedulerAvailableTriggers
The available triggers. - taskSchedulerVersion
- Type: SystemVersion
The Task Scheduler version. - showCustom (Optional)
- Type: SystemBoolean
Show CustomTrigger instances.
Return Value
Type:
AvailableTriggersThe 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
TaskDefinition. 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