次の方法で共有


ImageModeration.MatchMethodWithHttpMessagesAsync メソッド

定義

あいまい一致により、画像をカスタム画像リストの 1 つに一致させます。 href="/docs/services/578ff44d2703741568569ab9/operations/578ff7b12703741568569abe"this</a> API を>使用して<、カスタム イメージ リストを作成および管理できます。

一致する画像の ID とタグを返します。<br/><br/> Note: 更新インデックスは、応答に追加と削除が反映される前に、対応するイメージ リストで実行する必要があります。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.MatchResponse>> MatchMethodWithHttpMessagesAsync (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 MatchMethodWithHttpMessagesAsync : 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.MatchMethodWithHttpMessagesAsync : 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 MatchMethodWithHttpMessagesAsync (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))

パラメーター

listId
String

リスト ID。

cacheImage
Nullable<Boolean>

提出された画像を将来の使用のために保持するかどうか。省略すると、既定値は false になります。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

実装

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象