---
title: "Aspose::Email::Storage::Pst::PersonalStorageQueryBuilder::get_MessageId method"
url: "https://reference.aspose.com/email/cpp/aspose.email.storage.pst/personalstoragequerybuilder/get_messageid/"
product: "Aspose.Email for C++"
description: "Gets the field that allows to find messages that contain the specified string in the envelope structure's MessageId field."
---


## get_MessageId {#get_messageid}

Gets the field that allows to find messages that contain the specified string in the envelope structure's MessageId field.

**Returns:** System::SharedPtr < Tools::Search::StringComparisonField > Aspose::Email::Storage::Pst::

```cpp
get_MessageId()
```

