IGmailClientAsync.CreateAppointmentAsync

IGmailClientAsync.CreateAppointmentAsync method

Asynchronously creates an appointment in the specified calendar.

public Task<Appointment> CreateAppointmentAsync(string calendarId, Appointment appointment, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
calendarIdStringThe ID of the calendar.
appointmentAppointmentThe appointment to create.
cancellationTokenCancellationTokenA cancellation token.

Return Value

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

See Also