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

# PropertyStreamHeaderTopLevel

## Overview

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

Top-level property stream header containing next-id counters and counts for recipients and attachments.

Properties: `attachment_count`, `next_attachment_id`, `next_recipient_id`, `recipient_count`, `reserved_0`, `reserved_1`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `reserved_0` | `bytes` | Read | Gets the reserved 0. |
| `next_recipient_id` | `int` | Read | Gets the next recipient id. |
| `next_attachment_id` | `int` | Read | Gets the next attachment id. |
| `recipient_count` | `int` | Read | Gets the recipient count. |
| `attachment_count` | `int` | Read | Gets the attachment count. |
| `reserved_1` | `bytes` | Read | Gets the reserved 1. |

## Examples

```python
from aspose.email_foss.msg import MsgReader

with MsgReader.from_file("message.msg") as reader:
    header, entries = reader.parse_message_property_stream()
    print(f"recipients={header.recipient_count}, attachments={header.attachment_count}")
    print(f"next_recipient_id={header.next_recipient_id}")
    print(f"property entries={len(entries)}")
```

## See Also

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