---
title: "MapiAttachment.OpenRead"
url: "https://reference.aspose.com/email/net/aspose.email.mapi/mapiattachment/openread/"
product: "Aspose.Email for .NET API Reference"
description: "MapiAttachment method. Opens the attachment content for reading"
---

## MapiAttachment.OpenRead method

Opens the attachment content for reading.

```csharp
public Stream OpenRead()
```

### Return Value

An independent, read-only, seekable stream over the attachment content.

### Exceptions

| exception | condition |
| --- | --- |
| InvalidOperationException | If the attachment has no binary content. |

## Remarks

For attachments added from a stream the content is read from the source on demand and is not copied into memory. Each call returns an independent reader, so several readers may be used at the same time.

### See Also

* class [MapiAttachment](../)
* namespace [Aspose.Email.Mapi](../../mapiattachment/)
* assembly [Aspose.Email](../../../)


