다음을 통해 공유


VoiceCommandSet.SetPhraseListAsync(String, IIterable<String>) 메서드

정의

Item 요소의 배열PhraseList 요소를 채웁니다.

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 요소의 레이블 특성에 해당하는 문자열입니다.

phraseList

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

PhraseList 요소에 Item 요소로 추가될 값의 문자열 배열입니다.

반환

비동기 작업입니다.

특성

적용 대상

추가 정보