Share via


ImageModerationExtensions.MatchFileInputAsync メソッド

定義

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

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

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.MatchResponse> MatchFileInputAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.IImageModeration operations, System.IO.Stream imageStream, string listId = default, bool? cacheImage = default, System.Threading.CancellationToken cancellationToken = default);
static member MatchFileInputAsync : Microsoft.Azure.CognitiveServices.ContentModerator.IImageModeration * System.IO.Stream * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.MatchResponse>
<Extension()>
Public Function MatchFileInputAsync (operations As IImageModeration, imageStream As Stream, Optional listId As String = Nothing, Optional cacheImage As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MatchResponse)

パラメーター

operations
IImageModeration

この拡張メソッドの操作グループ。

imageStream
Stream

イメージ ファイル。

listId
String

リスト ID。

cacheImage
Nullable<Boolean>

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象