Share via


ImageModeration.EvaluateFileInputWithHttpMessagesAsync Método

Definición

Devuelve probabilidades de que la imagen contenga contenido explícito o para adultos.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Evaluate>> EvaluateFileInputWithHttpMessagesAsync (System.IO.Stream imageStream, bool? cacheImage = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member EvaluateFileInputWithHttpMessagesAsync : System.IO.Stream * 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>>
override this.EvaluateFileInputWithHttpMessagesAsync : System.IO.Stream * 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 EvaluateFileInputWithHttpMessagesAsync (imageStream As Stream, 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))

Parámetros

imageStream
Stream

Archivo de imagen.

cacheImage
Nullable<Boolean>

Si desea conservar la imagen enviada para su uso futuro; el valor predeterminado es false si se omite.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Implementaciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se produce cuando un parámetro obligatorio es NULL

Se aplica a