IAttachments.GetAttachmentWithHttpMessagesAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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>>
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))
Paramètres
- attachmentId
- String
ID de l’annexe .
- viewId
- String
Voir l’identifiant depuis AttachmentInfo.
- customHeaders
- Dictionary<String,List<String>>
Les en-têtes qui seront ajoutés à la requête.
- cancellationToken
- CancellationToken
Jeton d’annulation.
Retours
Tâche qui représente le travail mis en file d’attente à exécuter.
Exceptions
Déclenché lorsque l’opération a renvoyé un code de statut invalide.
Rejeté lorsqu’il n’est pas possible de désérialiser la réponse.
Lancé lorsqu’un paramètre requis est nul.
Remarques
Obtenez la vue nommée en tant que contenu binaire.