ICalendarConnector.AddEventAsync(CalendarEvent, CancellationToken) Method

Definition

Add a new event to the user's calendar

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.MsGraph.Models.CalendarEvent> AddEventAsync(Microsoft.SemanticKernel.Plugins.MsGraph.Models.CalendarEvent calendarEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member AddEventAsync : Microsoft.SemanticKernel.Plugins.MsGraph.Models.CalendarEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.MsGraph.Models.CalendarEvent>
Public Function AddEventAsync (calendarEvent As CalendarEvent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CalendarEvent)

Parameters

calendarEvent
CalendarEvent

Event to add.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Event that was added.

Applies to