---
title: "Aspose::Email::Mapi::MapiAttachment::get_FileName method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapiattachment/get_filename/"
product: "Aspose.Email for C++"
description: "Gets an attachment's base filename and extension, excluding path."
---


## get_FileName {#get_filename}

Gets an attachment's base filename and extension, excluding path.

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

```cpp
get_FileName()
```

