
## NotEquals (1 of 2) {#notequals_1}

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

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

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

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

---

## NotEquals (2 of 2) {#notequals_2}

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

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

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

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

