---
title: "Aspose::Email::Clients::Google::Criteria::get_Query method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/criteria/get_query/"
product: "Aspose.Email for C++"
description: "Only return messages matching the specified query.Supports the same query format as the Gmail search box."
---


## get_Query {#get_query}

Only return messages 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_Query()
```

