次の方法で共有


VoiceCommandSet.SetPhraseListAsync(String, IIterable<String>) メソッド

定義

PhraseList 要素に Item 要素の配列を設定します。

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

パラメーター

phraseListName
String

Platform::String

winrt::hstring

PhraseList 要素の label 属性に対応する文字列。

phraseList

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

PhraseList 要素に Item 要素として追加される値の文字列配列。

戻り値

非同期アクション。

属性

適用対象

こちらもご覧ください