ImageModerationExtensions.EvaluateUrlInputAsync Method

Definition

Returns probabilities of the image containing racy or adult content.

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)

Parameters

operations
IImageModeration

The operations group for this extension method.

contentType
String

The content type.

imageUrl
BodyModel

The image url.

cacheImage
Nullable<Boolean>

Whether to retain the submitted image for future use; defaults to false if omitted.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to