TextPredictionGenerator.GetNextWordCandidatesAsync 方法

定义

异步检索包含下一个单词预测候选项的字符串集合。

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

参数

maxCandidates
UInt32

unsigned int

uint32_t

要返回的最大候选项数。

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 中引入)

适用于