ScheduledJobDefinition.SetTriggers 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.
Creates a new set of ScheduledJobTriggers for this object.
public void SetTriggers (System.Collections.Generic.IEnumerable<Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger> newTriggers, bool save);
member this.SetTriggers : seq<Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger> * bool -> unit
Public Sub SetTriggers (newTriggers As IEnumerable(Of ScheduledJobTrigger), save As Boolean)
Parameters
- newTriggers
- IEnumerable<ScheduledJobTrigger>
Array of ScheduledJobTrigger objects to set
- save
- Boolean
Update Windows Task Scheduler and save to store