---
Product: Aspose.Email
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/email/python/mapiproperty
---

# MapiProperty

## Overview

`MapiProperty` is a class in Aspose.Email FOSS for Python.

Logical MAPI property with optional named-property identity.

This class provides 2 methods for working with MapiProperty objects in Python programs.
Available methods include: `clear_raw`, `clone`.
All public members are accessible to any Python application after installing the Aspose.Email FOSS for Python package.
Properties: `flags`, `named`, `preserve_raw`, `property_id`, `property_tag`, `property_type`, and 6 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `property_tag` | `int` | Read | Gets the property tag. |
| `property_id` | `int` | Read/Write | Gets or sets the property id. |
| `property_type` | `int` | Read/Write | Gets or sets the property type. |
| `value` | `Any` | Read/Write | Gets or sets the value. |
| `flags` | `int` | Read/Write | Gets or sets the flags. |
| `named` | `MapiNamedProperty \| None` | Read/Write | Gets or sets the named. |
| `raw_inline_value` | `bytes \| None` | Read/Write | Gets or sets the raw inline value. |
| `raw_size_value` | `int \| None` | Read/Write | Gets or sets the raw size value. |
| `raw_reserved_value` | `int \| None` | Read/Write | Gets or sets the raw reserved value. |
| `raw_direct_stream` | `bytes \| None` | Read/Write | Gets or sets the raw direct stream. |
| `raw_indexed_streams` | `tuple[tuple[int, bytes], ...]` | Read/Write | Gets or sets the raw indexed streams. |
| `preserve_raw` | `bool` | Read/Write | Gets or sets the preserve raw. |

## Methods

| Signature | Description |
|-----------|-------------|
| `clone()` → `"MapiProperty"` | Returns a new MapiProperty with the same data |
| `clear_raw()` | Removes any stored raw binary representation of the property |

## See Also

- [Aspose.Email for Python — Enterprise API Reference](https://reference.aspose.com/email/python-net/aspose.email.mapi/mapiproperty/)