ImageModerationExtensions.FindFacesUrlInputAsync Method

Definition

Returns the list of faces found.

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.FoundFaces> FindFacesUrlInputAsync (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 FindFacesUrlInputAsync : 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.FoundFaces>
<Extension()>
Public Function FindFacesUrlInputAsync (operations As IImageModeration, contentType As String, imageUrl As BodyModel, Optional cacheImage As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FoundFaces)

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