次の方法で共有


TextModeration.DetectLanguageWithHttpMessagesAsync メソッド

定義

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

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage>> DetectLanguageWithHttpMessagesAsync (string textContentType, System.IO.Stream textContent, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DetectLanguageWithHttpMessagesAsync : string * System.IO.Stream * 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.DetectedLanguage>>
override this.DetectLanguageWithHttpMessagesAsync : string * System.IO.Stream * 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.DetectedLanguage>>
Public Function DetectLanguageWithHttpMessagesAsync (textContentType As String, textContent As Stream, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of DetectedLanguage))

パラメーター

textContentType
String

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

textContent
Stream

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

customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

実装

例外

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

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

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

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

適用対象