VoiceCommandSet.SetPhraseListAsync(String, IIterable<String>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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]
/// [Windows.Foundation.Metadata.Deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition instead of Windows.Media.SpeechRecognition.VoiceComandSet. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
IAsyncAction SetPhraseListAsync(winrt::hstring const& phraseListName, IIterable<winrt::hstring> const& phraseList);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetPhraseListAsync(string phraseListName, IEnumerable<string> phraseList);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition instead of Windows.Media.SpeechRecognition.VoiceComandSet. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
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.
A string array of values that will be added to the PhraseList element as Item elements.
Returns
An asynchronous action.
- Attributes