ScheduledJobDefinition.SetTriggers Method

Definition

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

Applies to