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