Taal

Attachments.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>>
override this.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>>
override this.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

Hechtings-ID.

customHeaders
Dictionary<String,List<String>>

Headers die op verzoek worden toegevoegd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

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

Een responsobject met de responsbody en responsheaders.

Implementeringen

Uitzonderingen

Wordt gegooid wanneer de operatie een ongeldige statuscode teruggeeft.

Microsoft.Rest.SerializationException

Ze worden weggegooid als je de reactie niet kan verwoorden.

Microsoft.Rest.ValidationException

Wordt gegooid wanneer een invoerwaarde niet overeenkomt met het verwachte datatype, bereik of patroon.

Wordt gegooid wanneer een vereiste parameter null is.

Opmerkingen

De bijlageinfostructuur ophalen waarin de bijlageweergaven worden beschreven.

Van toepassing op