Freigeben über


ISnapshotOperations.GetWithHttpMessagesAsync Methode

Definition

Rufen Sie Informationen zu einer Momentaufnahme ab. Die Momentaufnahme ist nur für das Quellabonnement zugänglich, das sie verwendet hat, und für Zielabonnements, die in applyScope in Snapshot – Take enthalten sind.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.Snapshot>> GetWithHttpMessagesAsync (Guid snapshotId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : Guid * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.Snapshot>>
Public Function GetWithHttpMessagesAsync (snapshotId As Guid, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Snapshot))

Parameter

snapshotId
Guid

Id, die auf einen bestimmten Momentaufnahme verweist.

customHeaders
Dictionary<String,List<String>>

Die Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Gilt für: