IGmailClientAsync.CreateCalendarAsync

CreateCalendarAsync(Calendar, CancellationToken)

Asynchronously creates a calendar.

public Task<Calendar> CreateCalendarAsync(Calendar calendar, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
calendarCalendarThe calendar to create.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the created Calendar.

See Also


CreateCalendarAsync(Calendar, bool, CancellationToken)

Asynchronously creates a calendar and optionally an extended calendar.

public Task<string> CreateCalendarAsync(Calendar calendar, bool useColorRgbFormat, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
calendarCalendarThe calendar to create.
useColorRgbFormatBooleanWhether to use RGB color format for the extended calendar.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the ID of the created calendar.

See Also