共用方式為


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

屬性

另請參閱

適用於