TextPredictionGenerator.GetCandidatesAsync メソッド

定義

オーバーロード

GetCandidatesAsync(String)

指定されたふりがなのプレフィックスに基づいて、候補の単語の一覧を非同期的に取得します。

GetCandidatesAsync(String, UInt32)

指定されたふりがなのプレフィックスに基づいて、候補の単語の一覧を最大カウントまで非同期的に取得します。

GetCandidatesAsync(String, UInt32, TextPredictionOptions, IIterable<String>)

指定されたふりがなのプレフィックスとオプションに基づいて、候補の単語の一覧を最大カウントまで非同期的に取得します。

GetCandidatesAsync(String)

指定されたふりがなのプレフィックスに基づいて、候補の単語の一覧を非同期的に取得します。

public:
 virtual IAsyncOperation<IVectorView<Platform::String ^> ^> ^ GetCandidatesAsync(Platform::String ^ input) = GetCandidatesAsync;
/// [Windows.Foundation.Metadata.Overload("GetCandidatesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<winrt::hstring>> GetCandidatesAsync(winrt::hstring const& input);
[Windows.Foundation.Metadata.Overload("GetCandidatesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<string>> GetCandidatesAsync(string input);
function getCandidatesAsync(input)
Public Function GetCandidatesAsync (input As String) As IAsyncOperation(Of IReadOnlyList(Of String))

パラメーター

input
String

Platform::String

winrt::hstring

返される単語の先頭のふりがな。

戻り値

完了すると、予測される単語である文字列の IVectorView が含まれる非同期操作オブジェクト。

属性

こちらもご覧ください

適用対象

GetCandidatesAsync(String, UInt32)

指定されたふりがなのプレフィックスに基づいて、候補の単語の一覧を最大カウントまで非同期的に取得します。

public:
 virtual IAsyncOperation<IVectorView<Platform::String ^> ^> ^ GetCandidatesAsync(Platform::String ^ input, unsigned int maxCandidates) = GetCandidatesAsync;
/// [Windows.Foundation.Metadata.Overload("GetCandidatesWithMaxCountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<winrt::hstring>> GetCandidatesAsync(winrt::hstring const& input, uint32_t const& maxCandidates);
[Windows.Foundation.Metadata.Overload("GetCandidatesWithMaxCountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<string>> GetCandidatesAsync(string input, uint maxCandidates);
function getCandidatesAsync(input, maxCandidates)
Public Function GetCandidatesAsync (input As String, maxCandidates As UInteger) As IAsyncOperation(Of IReadOnlyList(Of String))

パラメーター

input
String

Platform::String

winrt::hstring

返される単語の先頭のふりがな。

maxCandidates
UInt32

unsigned int

uint32_t

返される予測単語の最大数。

戻り値

完了すると、予測される単語である文字列の IVectorView が含まれる非同期操作オブジェクト。

属性

こちらもご覧ください

適用対象

GetCandidatesAsync(String, UInt32, TextPredictionOptions, IIterable<String>)

指定されたふりがなのプレフィックスとオプションに基づいて、候補の単語の一覧を最大カウントまで非同期的に取得します。

public:
 virtual IAsyncOperation<IVectorView<Platform::String ^> ^> ^ GetCandidatesAsync(Platform::String ^ input, unsigned int maxCandidates, TextPredictionOptions predictionOptions, IIterable<Platform::String ^> ^ previousStrings) = GetCandidatesAsync;
/// [Windows.Foundation.Metadata.Overload("GetCandidatesWithParametersAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<winrt::hstring>> GetCandidatesAsync(winrt::hstring const& input, uint32_t const& maxCandidates, TextPredictionOptions const& predictionOptions, IIterable<winrt::hstring> const& previousStrings);
[Windows.Foundation.Metadata.Overload("GetCandidatesWithParametersAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<string>> GetCandidatesAsync(string input, uint maxCandidates, TextPredictionOptions predictionOptions, IEnumerable<string> previousStrings);
function getCandidatesAsync(input, maxCandidates, predictionOptions, previousStrings)
Public Function GetCandidatesAsync (input As String, maxCandidates As UInteger, predictionOptions As TextPredictionOptions, previousStrings As IEnumerable(Of String)) As IAsyncOperation(Of IReadOnlyList(Of String))

パラメーター

input
String

Platform::String

winrt::hstring

返される単語の先頭のふりがな。

maxCandidates
UInt32

unsigned int

uint32_t

返される予測単語の最大数。

predictionOptions
TextPredictionOptions

予測オプションを含む TextPredictionOptions 値。

previousStrings

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

以前に入力された単語のコレクション (テキスト予測を支援するため)。

戻り値

完了すると、予測される単語である文字列の IVectorView が含まれる非同期操作オブジェクト。

属性

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v7.0 で導入)

適用対象