StdAdoDelegateInsertCalendar Method

Quartz.NET 3.0 API Documentation
Insert a new calendar.

Namespace:  Quartz.Impl.AdoJobStore
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
public virtual Task<int> InsertCalendar(
	ConnectionAndTransactionHolder conn,
	string calendarName,
	ICalendar calendar,
	CancellationToken cancellationToken = null
)

Parameters

conn
Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
the DB Connection
calendarName
Type: SystemString
The name for the new calendar.
calendar
Type: QuartzICalendar
The calendar.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation instruction.

Return Value

Type: TaskInt32
the number of rows inserted

Implements

IDriverDelegateInsertCalendar(ConnectionAndTransactionHolder, String, ICalendar, CancellationToken)
See Also

Reference