TextConversionGenerator.GetCandidatesAsync 方法

定义

重载

GetCandidatesAsync(String)

根据提供的拼音字符异步获取候选字词的列表。

GetCandidatesAsync(String, UInt32)

根据提供的拼音字符,异步获取候选字词列表(最多为最大计数)。

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

属性

另请参阅

适用于