Partilhar via


ImageModeration.MatchUrlInputWithHttpMessagesAsync Método

Definição

Realizar a correspondência parcial com relação a uma imagem em uma de suas listas de imagens personalizadas. Você pode criar e gerenciar suas listas de imagens personalizadas usando <um href="/docs/services/578ff44d2703741568569ab9/operations/578ff7b12703741568569abe">this</a> API.

Retorna a ID e as marcas da imagem correspondente.< br/><br/> Observação: o índice de atualização deve ser executado na Lista de Imagens correspondente antes que adições e remoções sejam refletidas na resposta.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.MatchResponse>> MatchUrlInputWithHttpMessagesAsync (string contentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel imageUrl, string listId = default, bool? cacheImage = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member MatchUrlInputWithHttpMessagesAsync : string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel * string * 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.MatchResponse>>
override this.MatchUrlInputWithHttpMessagesAsync : string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel * string * 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.MatchResponse>>
Public Function MatchUrlInputWithHttpMessagesAsync (contentType As String, imageUrl As BodyModel, Optional listId As String = Nothing, 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 MatchResponse))

Parâmetros

contentType
String

O tipo de conteúdo.

imageUrl
BodyModel

A URL da imagem.

listId
String

A ID da lista.

cacheImage
Nullable<Boolean>

Se deseja manter a imagem enviada para uso futuro; o padrão será false se for omitido.

customHeaders
Dictionary<String,List<String>>

Cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Implementações

Exceções

Gerado quando a operação retornou um código de status inválido

Gerado quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Gerado quando um parâmetro necessário é nulo

Aplica-se a