---
title: "Aspose::Email::Mapi::MapiAttachment::get_Extension method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapiattachment/get_extension/"
product: "Aspose.Email for C++"
description: "Gets a filename extension that indicates the document type of an attachment."
---


## get_Extension {#get_extension}

Gets a filename extension that indicates the document type of an attachment.

**Returns:** System::String Aspose::Email::Mapi::

```cpp
get_Extension()
```

