Freigeben über


IImageModeration.FindFacesUrlInputWithHttpMessagesAsync Methode

Definition

Gibt die Liste der gefundenen Gesichter zurück.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.FoundFaces>> FindFacesUrlInputWithHttpMessagesAsync (string contentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel imageUrl, bool? cacheImage = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FindFacesUrlInputWithHttpMessagesAsync : string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel * 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 FindFacesUrlInputWithHttpMessagesAsync (contentType As String, imageUrl As BodyModel, 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

contentType
String

Der Inhaltstyp.

imageUrl
BodyModel

Die Bild-URL.

cacheImage
Nullable<Boolean>

Gibt an, ob das übermittelte Bild für die zukünftige Verwendung beibehalten werden soll; wird standardmäßig auf false festgelegt, wenn nicht angegeben wird.

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: