VoiceCommandSet 類別

定義

注意

Windows Phone 8.1 之後的版本可能會變更或無法使用 VoiceCommandSet。 請改用 Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition

在特定已安裝的命令集上啟用作業。

public ref class VoiceCommandSet sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class VoiceCommandSet final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [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")]
class VoiceCommandSet final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class VoiceCommandSet
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[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 sealed class VoiceCommandSet
Public NotInheritable Class VoiceCommandSet
繼承
Object Platform::Object IInspectable VoiceCommandSet
屬性

Windows 需求

裝置系列
Windows Mobile Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.Phone.PhoneContract (已於 v1.0 引進)

備註

存取 VoiceCommandManager.InstalledCommandSets 屬性,以取得這個類別的實例。

屬性

Language

取得語音命令定義檔案中CommandSet元素的語言 (xml:lang) 值。

Name

取得Voice Command Definition檔案中CommandSet元素的Name屬性值。

方法

SetPhraseListAsync(String, IIterable<String>)

使用Item元素的陣列填入PhraseList元素。

適用於

另請參閱