Freigeben über


ImageModerationExtensions.EvaluateUrlInputAsync Methode

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Evaluate> EvaluateUrlInputAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.IImageModeration operations, string contentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel imageUrl, bool? cacheImage = default, System.Threading.CancellationToken cancellationToken = default);
static member EvaluateUrlInputAsync : Microsoft.Azure.CognitiveServices.ContentModerator.IImageModeration * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Evaluate>
<Extension()>
Public Function EvaluateUrlInputAsync (operations As IImageModeration, contentType As String, imageUrl As BodyModel, Optional cacheImage As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Evaluate)

Parameter

operations
IImageModeration

Die Vorgangsgruppe für diese Erweiterungsmethode.

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.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: