
## CreateKey (1 of 2) {#createkey_1}

Creates the search key.

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

```cpp
CreateKey(System::String name, System::SharedPtr < System::BoxedValueBase > value, System::String comparsionOperator)
```

| Parameter | Description |
| --- | --- |
| name | The field name. |
| value | The value. |
| comparsionOperator | The operator. |

---

## CreateKey (2 of 2) {#createkey_2}

Creates the search key.

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

```cpp
CreateKey(System::String name, System::String value, System::String comparsionOperator)
```

| Parameter | Description |
| --- | --- |
| name | The field name. |
| value | The value. |
| comparsionOperator | The operator. |

