Freigeben über


IImageModeration.EvaluateUrlInputWithHttpMessagesAsync Methode

Definition

Gibt Wahrscheinlichkeiten dazu zurück, ob das Bild freizügige oder nicht jugendfreie Inhalte aufweist.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Evaluate>> EvaluateUrlInputWithHttpMessagesAsync (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 EvaluateUrlInputWithHttpMessagesAsync : 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.Evaluate>>
Public Function EvaluateUrlInputWithHttpMessagesAsync (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 Evaluate))

Parameter

contentType
String

Der Inhaltstyp.

imageUrl
BodyModel

Die Bild-URL.

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

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: