Freigeben über


VoiceCommandSet.SetPhraseListAsync(String, IIterable<String>) Methode

Definition

Füllt ein PhraseList-Element mit einem Array von Item-Elementen auf.

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

Parameter

phraseListName
String

Platform::String

winrt::hstring

Die Zeichenfolge, die dem label-Attribut des PhraseList-Elements entspricht.

phraseList

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Ein Zeichenfolgenarray von Werten, das dem PhraseList-Element als Item-Elemente hinzugefügt wird.

Gibt zurück

Eine asynchrone Aktion.

Attribute

Gilt für:

Weitere Informationen