IGraphClientAsync.CreateAttachmentAsync
IGraphClientAsync.CreateAttachmentAsync method
Asynchronously creates an attachment in the specified parent item.
public Task<MapiAttachment> CreateAttachmentAsync(string parentId, MapiAttachment attachment,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| parentId | String | The ID of the parent item (message, event, etc.). |
| attachment | MapiAttachment | The MapiAttachment to create. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous operation. The task result contains the created MapiAttachment.
See Also
- class MapiAttachment
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email