---
title: "Aspose::Email::Clients::Google::Criteria::get_NegatedQuery method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/criteria/get_negatedquery/"
product: "Aspose.Email for C++"
description: "Only return messages not matching the specified query."
---


## get_NegatedQuery {#get_negatedquery}

Only return messages not matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:somemsgid@example.com is:unread".

**Returns:** System::String Aspose::Email::Clients::Google::

```cpp
get_NegatedQuery()
```

