다음을 통해 공유


AttachmentsExtensions.GetAttachmentAsync 메서드

정의

GetAttachment.

public static System.Threading.Tasks.Task<byte[]> GetAttachmentAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, string viewId, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, string viewId, System.Threading.CancellationToken cancellationToken = default);
static member GetAttachmentAsync : Microsoft.Bot.Connector.IAttachments * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
static member GetAttachmentAsync : Microsoft.Bot.Connector.IAttachments * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
<Extension()>
Public Function GetAttachmentAsync (operations As IAttachments, attachmentId As String, viewId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
<Extension()>
Public Function GetAttachmentAsync (operations As IAttachments, attachmentId As String, viewId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

매개 변수

operations
IAttachments

이 확장 메서드에 대한 작업 그룹입니다.

attachmentId
String

첨부 파일 ID입니다.

viewId
String

attachmentInfo에서 ID를 봅니다.

cancellationToken
CancellationToken

취소 토큰입니다.

반환

Task<Byte[]>

Stream인 첨부 파일입니다.

설명

명명된 뷰를 이진 콘텐츠로 가져옵니다.

적용 대상