## SaveAsync(string, CancellationToken) {#saveasync_1}

Save attachment content asynchronously.

```csharp
public Task SaveAsync(string filename, CancellationToken token = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filename | String | The file name to save. |
| token | CancellationToken | Propagates notification that operations should be canceled. |

### See Also

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

---

## SaveAsync(Stream, CancellationToken) {#saveasync}

Save attachment content asynchronously.

```csharp
public Task SaveAsync(Stream stream, CancellationToken token = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The stream to save. |
| token | CancellationToken | Propagates notification that operations should be canceled. |

### See Also

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


