Lingua

Attachments.GetAttachmentWithHttpMessagesAsync Metodo

Definizione

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

Parametri

attachmentId
String

ID allegato.

viewId
String

Visualizza l'id da AllegatoInfo.

customHeaders
Dictionary<String,List<String>>

Header che verranno aggiunti alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Valori restituiti

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Un oggetto risposta contenente il corpo della risposta e le intestazioni risposta.

Implementazioni

Eccezioni

Veniva lanciata quando l'operazione restituiva un codice di stato non valido.

Microsoft.Rest.SerializationException

Viene lanciato quando non si riesce a deserializzare la risposta.

Microsoft.Rest.ValidationException

Lanciata quando un valore di input non corrisponde al tipo di dato atteso, all'intervallo o al modello del campo dati.

Viene lanciato quando un parametro richiesto è nullo.

Commenti

Ottiene la visualizzazione denominata come contenuto binario.

Si applica a