Check whether or not a trigger exists.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public virtual Task<bool> TriggerExists( ConnectionAndTransactionHolder conn, TriggerKey triggerKey, CancellationToken cancellationToken = null )
Parameters
- conn
- Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
The DB Connection. - triggerKey
- Type: QuartzTriggerKey
the key of the trigger - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskBooleantrue if the trigger exists, false otherwise
Implements
IDriverDelegateTriggerExists(ConnectionAndTransactionHolder, TriggerKey, CancellationToken)See Also