Delen via


IAttachments.GetAttachmentInfoWithHttpMessagesAsync Methode

Definitie

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

Parameters

attachmentId
String

bijlage-id.

customHeaders
Dictionary<String,List<String>>

De headers die aan de aanvraag worden toegevoegd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

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

Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren.

Uitzonderingen

Gegenereerd toen de bewerking een ongeldige statuscode retourneerde.

Microsoft.Rest.SerializationException

Gegenereerd wanneer het antwoord niet kan worden gedeserialiseerd.

Microsoft.Rest.ValidationException

Gegenereerd wanneer een vereiste parameter null is.

Opmerkingen

Get AttachmentInfo-structuur met een beschrijving van de bijlageweergaven.

Van toepassing op