Remove (delete) the ITrigger with the
given name, and store the new given one - which must be associated
with the same job.
Namespace: Quartz.Spi
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
Task<bool> ReplaceTrigger( TriggerKey triggerKey, IOperableTrigger newTrigger, CancellationToken cancellationToken = null )
Parameters
- triggerKey
- Type: QuartzTriggerKey
The ITrigger to be replaced. - newTrigger
- Type: Quartz.SpiIOperableTrigger
The new ITrigger to be stored. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskBooleanif a ITrigger with the given name and group was found and removed from the store.
See Also