Freigeben über


ScheduledJobDefinition.UpdateTriggers Method

Definition

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.

Applies to