Store the given ICalendar.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public Task StoreCalendar( string calName, ICalendar calendar, bool replaceExisting, bool updateTriggers, CancellationToken cancellationToken = null )
Parameters
- calName
- Type: SystemString
The name of the calendar. - calendar
- Type: QuartzICalendar
The ICalendar to be stored. - replaceExisting
- Type: SystemBoolean
If , any ICalendar existing in the IJobStore with the same name & group should be over-written. - updateTriggers
- Type: SystemBoolean
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: Task[Missing <returns> documentation for "M:Quartz.Impl.AdoJobStore.JobStoreSupport.StoreCalendar(System.String,Quartz.ICalendar,System.Boolean,System.Boolean,System.Threading.CancellationToken)"]
Implements
IJobStoreStoreCalendar(String, ICalendar, Boolean, Boolean, CancellationToken)Exceptions
Exception | Condition |
---|---|
ObjectAlreadyExistsException | if a ICalendar with the same name already exists, and replaceExisting is set to false. |
See Also