IGmailClientAsync.CreateCalendarAsync
Contents
[
Hide
]CreateCalendarAsync(Calendar, CancellationToken)
Asynchronously creates a calendar.
public Task<Calendar> CreateCalendarAsync(Calendar calendar,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| calendar | Calendar | The calendar to create. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the created Calendar.
See Also
- class Calendar
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email
CreateCalendarAsync(Calendar, bool, CancellationToken)
Asynchronously creates a calendar and optionally an extended calendar.
public Task<string> CreateCalendarAsync(Calendar calendar, bool useColorRgbFormat,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| calendar | Calendar | The calendar to create. |
| useColorRgbFormat | Boolean | Whether to use RGB color format for the extended calendar. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the ID of the created calendar.
See Also
- class Calendar
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email