Attachments.GetAttachmentWithHttpMessagesAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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
Hechtings-ID.
- viewId
- String
Bekijk de ID van attachmentInfo.
- customHeaders
- Dictionary<String,List<String>>
Headers die op verzoek worden toegevoegd.
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
Een responsobject met de responsbody en responsheaders.
Implementeringen
Uitzonderingen
Wordt gegooid wanneer de operatie een ongeldige statuscode teruggeeft.
Ze worden weggegooid als je de reactie niet kan verwoorden.
Wordt gegooid wanneer een invoerwaarde niet overeenkomt met het verwachte datatype, bereik of patroon van het dataveld.
Wordt gegooid wanneer een vereiste parameter null is.
Opmerkingen
Haal de benoemde weergave op als binaire inhoud.