Partilhar via


ScheduledJobDefinition.AddTriggers Method

Definition

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

Applies to