---
title: "Aspose::Email::Mapi::KnownPropertyList::RetentionDate method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/knownpropertylist/retentiondate/"
product: "Aspose.Email for C++"
description: "Specifies the date, in UTC, after which a Message object is expired by the server."
---


## RetentionDate {#retentiondate}

Specifies the date, in UTC, after which a Message object is expired by the server. Area: Archive Canonical name: PidTagRetentionDate Alternate names: PR_RETENTION_DATE, ptagRetentionDate

**Returns:** System::SharedPtr < PidTagPropertyDescriptor > Aspose::Email::Mapi::

```cpp
RetentionDate()
```

