---
Product: Aspose.Email
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/email/net/msg-stream
---

# MsgStream

## Overview

`MsgStream` is a named binary stream node within a `MsgStorage`. Each stream stores the raw bytes for a single MAPI property — for example the property value stream `__substg1.0_0037001F` holds the Unicode subject text. Read the raw bytes via `Data`, and check `Name` to identify which MAPI property tag the stream encodes. Use `CreationTime` and `ModifiedTime` for CFB-level timestamping.

## Constructors

| Signature | Description |
|-----------|-------------|
| `MsgStream(name: string, data: byte[]?)` | Creates a new `MsgStream` with the specified parameters. |

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Name` | `string` | Read | CFB stream name encoding the MAPI property tag (e.g. `__substg1.0_0037001F`). |
| `Data` | `byte[]` | Read | Raw bytes of this property stream. |
| `Clsid` | `byte[]` | Read | 16-byte CLSID of this stream entry (typically all zeros). |
| `StateBits` | `uint` | Read | User-defined state bits stored in the CFB directory entry for this stream. |
| `CreationTime` | `ulong` | Read | CFB creation timestamp for this stream entry (64-bit FILETIME). |
| `ModifiedTime` | `ulong` | Read | CFB last-modification timestamp for this stream entry (64-bit FILETIME). |

## See Also
- [Aspose.Email for .NET — Enterprise API Reference](https://reference.aspose.com/email/net/)