VoiceCommandManager 類別

定義

注意

Windows Phone 8.1 之後,VoiceCommandManager 可能會變更或無法使用版本。 請改用 Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager

靜態類別,可從 語音命令定義 (VCD) 檔案安裝命令集,以及存取已安裝的命令集。

public ref class VoiceCommandManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class VoiceCommandManager 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.VoiceCommandDefinitionManager instead of Windows.Media.SpeechRecognition.VoiceComandManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
class VoiceCommandManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class VoiceCommandManager
[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.VoiceCommandDefinitionManager instead of Windows.Media.SpeechRecognition.VoiceComandManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
public static class VoiceCommandManager
Public Class VoiceCommandManager
繼承
Object Platform::Object IInspectable VoiceCommandManager
屬性

Windows 需求

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

屬性

InstalledCommandSets

字典,其中包含在語音命令定義檔案中設定Name屬性的所有已安裝命令集。

方法

InstallCommandSetsFromStorageFileAsync(StorageFile)

語音命令定義檔案中安裝CommandSet元素。

適用於

另請參閱