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

获取语言 (xml:lang) 语音命令定义文件中 CommandSet 元素的值。

Name

获取语音命令定义文件中 CommandSet 元素的 Name 属性值。

方法

SetPhraseListAsync(String, IIterable<String>)

使用 Item 元素数组填充 PhraseList 元素。

适用于

另请参阅