Freigeben über


ImageModeration.FindFacesWithHttpMessagesAsync Methode

Definition

Gibt die Liste der gefundenen Gesichter zurück.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.FoundFaces>> FindFacesWithHttpMessagesAsync (bool? cacheImage = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FindFacesWithHttpMessagesAsync : Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.FoundFaces>>
override this.FindFacesWithHttpMessagesAsync : Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.FoundFaces>>
Public Function FindFacesWithHttpMessagesAsync (Optional cacheImage As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of FoundFaces))

Parameter

cacheImage
Nullable<Boolean>

Gibt an, ob das übermittelte Bild zur zukünftigen Verwendung aufbewahrt werden soll; wird standardmäßig auf false festgelegt, wenn ausgelassen wird.

customHeaders
Dictionary<String,List<String>>

Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Implementiert

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

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Gilt für: