AttachmentsExtensions.GetAttachmentAsync(IAttachments, String, String, CancellationToken) Method

Definition

GetAttachment

public static System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, string viewId, System.Threading.CancellationToken cancellationToken = null);
static member GetAttachmentAsync : Microsoft.Bot.Connector.IAttachments * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

operations
IAttachments

The operations group for this extension method.

attachmentId
String

attachment id

viewId
String

View id from attachmentInfo

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Get the named view as binary content

Applies to