
## Equals (1 of 2) {#equals_1}

Indicates that field in message must be equal to the specified value.

**Returns:** MailQuery that represents search query (one searching criterion).

```cpp
Equals(System::String value)
```

| Parameter | Description |
| --- | --- |
| value | The value. |

---

## Equals (2 of 2) {#equals_2}

Indicates that field in message must be equal to the specified value.

**Returns:** MailQuery that represents search query (one searching criterion).

```cpp
Equals(System::String value, bool ignoreCase)
```

| Parameter | Description |
| --- | --- |
| value | The value. |
| ignoreCase | true to ignore case during the comparison; otherwise, false. |

