Поделиться через


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

идентификатор вложения.

customHeaders
Dictionary<String,List<String>>

Заголовки, которые будут добавлены в запрос.

cancellationToken
CancellationToken

Токен отмены.

Возвращаемое значение

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

Задача, представляющая работу, поставленную в очередь для выполнения.

Исключения

Возникает, когда операция возвращает недопустимый код состояния.

Microsoft.Rest.SerializationException

Возникает, если не удается десериализовать ответ.

Microsoft.Rest.ValidationException

Возникает, если обязательный параметр имеет значение NULL.

Комментарии

Получение структуры AttachmentInfo, описывающей представления вложений.

Применяется к