语言

IAttachments.GetAttachmentInfoWithHttpMessagesAsync 方法

定义

GetAttachmentInfo。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.AttachmentInfo>> GetAttachmentInfoWithHttpMessagesAsync(string attachmentId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.AttachmentInfo>> GetAttachmentInfoWithHttpMessagesAsync(string attachmentId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAttachmentInfoWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.AttachmentInfo>>
abstract member GetAttachmentInfoWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.AttachmentInfo>>
Public Function GetAttachmentInfoWithHttpMessagesAsync (attachmentId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of AttachmentInfo))

参数

attachmentId
String

附件ID。

customHeaders
Dictionary<String,List<String>>

请求时会添加的头部。

cancellationToken
CancellationToken

取消令牌。

返回

Task<Microsoft.Rest.HttpOperationResponse<AttachmentInfo>>
Task<Microsoft.Rest.HttpOperationResponse<AttachmentInfo>>

表示要执行的工作的任务。

例外

当操作返回无效状态码时,会被抛出。

Microsoft.Rest.SerializationException

当无法反序列化响应时被抛弃。

Microsoft.Rest.ValidationException

当所需参数为空时,会被抛出。

注解

获取描述附件视图的 AttachmentInfo 结构。

适用于