ICalendarConnector.AddEventAsync(CalendarEvent, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.