ScheduledJobDefinition.UpdateTriggers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates triggers with provided trigger objects, matching passed in trigger Id with existing trigger Id.
public System.Collections.Generic.List<int> UpdateTriggers (System.Collections.Generic.IEnumerable<Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger> triggers, bool save);
member this.UpdateTriggers : seq<Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger> * bool -> System.Collections.Generic.List<int>
Public Function UpdateTriggers (triggers As IEnumerable(Of ScheduledJobTrigger), save As Boolean) As List(Of Integer)
Parameters
- triggers
- IEnumerable<ScheduledJobTrigger>
Collection of ScheduledJobTrigger objects to update
- save
- Boolean
Update Windows Task Scheduler and save to store
Returns
Trigger Ids not found.