TextModerationExtensions.DetectLanguageAsync メソッド

定義

この操作により、指定された入力コンテンツの言語が検出されます。 <href="http://www-01.sil.org/iso639-3/codes.asp"を返します。>送信されたテキストを構成する主要言語の ISO 639-3 コード</a>。 110 言語以上をサポートしています。

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage> DetectLanguageAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration operations, string textContentType, System.IO.Stream textContent, System.Threading.CancellationToken cancellationToken = default);
static member DetectLanguageAsync : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration * string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage>
<Extension()>
Public Function DetectLanguageAsync (operations As ITextModeration, textContentType As String, textContent As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DetectedLanguage)

パラメーター

operations
ITextModeration

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

textContentType
String

コンテンツの種類。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。

textContent
Stream

画面に表示するコンテンツ。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象