
## CreateQuery (1 of 2) {#createquery_1}

Creates the search key.

**Returns:** MailQuery that represents search query.

```cpp
CreateQuery()
```

---

## CreateQuery (2 of 2) {#createquery_2}

Creates the search key.

**Returns:** MailQuery that represents search query.

```cpp
CreateQuery(System::SharedPtr < Tools::Search::MailQueryBuilder > owner)
```

| Parameter | Description |
| --- | --- |
| owner | owner |

