---
title: "Aspose::Email::Clients::Google::IGmailClient::CreateAppointment method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/igmailclient/createappointment/"
product: "Aspose.Email for C++"
description: "Creates an appointment."
---


## CreateAppointment {#createappointment}

Creates an appointment.

**Returns:** Returns the created appointment.

```cpp
CreateAppointment(System::String calendarId, System::SharedPtr < Aspose::Email::Calendar::Appointment > appointment)
```

| Parameter | Description |
| --- | --- |
| calendarId | Calendar identifier. |
| appointment | An instance of appointment object to create. |

