IAttachments.GetAttachmentInfoWithHttpMessagesAsync Metode

Definisi

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))

Parameter

attachmentId
String

id lampiran.

customHeaders
Dictionary<String,List<String>>

Header yang akan ditambahkan ke permintaan.

cancellationToken
CancellationToken

Token pembatalan.

Mengembalikan

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

Tugas yang mewakili pekerjaan yang diantrekan untuk dijalankan.

Pengecualian

Dilemparkan ketika operasi mengembalikan kode status yang tidak valid.

Microsoft.Rest.SerializationException

Dilemparkan ketika tidak dapat mendeserialisasi respons.

Microsoft.Rest.ValidationException

Dilemparkan ketika parameter yang diperlukan null.

Keterangan

Dapatkan struktur AttachmentInfo yang menjelaskan tampilan lampiran.

Berlaku untuk