Delen via


Attachments.GetAttachmentWithHttpMessagesAsync Methode

Definitie

GetAttachment.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.IO.Stream>> GetAttachmentWithHttpMessagesAsync (string attachmentId, string viewId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAttachmentWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.IO.Stream>>
override this.GetAttachmentWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.IO.Stream>>
Public Function GetAttachmentWithHttpMessagesAsync (attachmentId As String, viewId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Stream))

Parameters

attachmentId
String

bijlage-id.

viewId
String

Id van attachmentInfo weergeven.

customHeaders
Dictionary<String,List<String>>

Headers die aan de aanvraag worden toegevoegd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Een antwoordobject met de antwoordtekst en antwoordheaders.

Implementeringen

Uitzonderingen

Gegenereerd toen de bewerking een ongeldige statuscode retourneerde.

Microsoft.Rest.SerializationException

Gegenereerd wanneer het antwoord niet kan worden gedeserialiseerd.

Microsoft.Rest.ValidationException

Wordt gegenereerd wanneer een invoerwaarde niet overeenkomt met het verwachte gegevenstype, -bereik of -patroon van het gegevensveld.

Gegenereerd wanneer een vereiste parameter null is.

Opmerkingen

Haal de benoemde weergave op als binaire inhoud.

Van toepassing op