Share via


VoiceCommandDefinition.SetPhraseListAsync Method

Definition

Populates a PhraseList element with an array of Item elements.

public:
 virtual IAsyncAction ^ SetPhraseListAsync(Platform::String ^ phraseListName, IIterable<Platform::String ^> ^ phraseList) = SetPhraseListAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetPhraseListAsync(winrt::hstring const& phraseListName, IIterable<winrt::hstring> const& phraseList);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetPhraseListAsync(string phraseListName, IEnumerable<string> phraseList);
function setPhraseListAsync(phraseListName, phraseList)
Public Function SetPhraseListAsync (phraseListName As String, phraseList As IEnumerable(Of String)) As IAsyncAction

Parameters

phraseListName
String

Platform::String

winrt::hstring

The string that corresponds to the label attribute of the PhraseList element.

phraseList

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

A string array of values that will be added to the PhraseList element as Item elements.

Returns

A string array of values that will be added to the PhraseList element as Item elements.

Attributes

Applies to

See also