Udostępnij przez


IAttachments.GetAttachmentAsync(String, String, CancellationToken) Method

Definition

Get the named view as binary content.

public System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentAsync(string attachmentId, string viewId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAttachmentAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Public Function GetAttachmentAsync (attachmentId As String, viewId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

Parameters

attachmentId
String

attachment id.

viewId
String

View id from attachmentInfo.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the work queued to execute.

Applies to