IGraphClientAsync.ListAttachmentsAsync

IGraphClientAsync.ListAttachmentsAsync method

Asynchronously lists attachments for the specified item.

public Task<MapiAttachmentCollection> ListAttachmentsAsync(string id, 
    ODataQueryBuilder queryBuilder = null, CancellationToken cancellationToken = default)
ParameterTypeDescription
idStringThe ID of the parent item (message, event, etc.).
queryBuilderODataQueryBuilderOptional OData query builder for filtering attachments.
cancellationTokenCancellationTokenA 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 collection of MapiAttachment.

See Also