VoiceCommandManager.InstalledCommandSets 属性

定义

一个字典,其中包含所有已安装的命令集,这些命令集在语音命令定义文件中设置了 Name 属性。

public:
 static property IMapView<Platform::String ^, VoiceCommandSet ^> ^ InstalledCommandSets { IMapView<Platform::String ^, VoiceCommandSet ^> ^ get(); };
static IMapView<winrt::hstring, VoiceCommandSet const&> InstalledCommandSets();
/// [get: 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")]
static IMapView<winrt::hstring, VoiceCommandSet const&> InstalledCommandSets();
public static IReadOnlyDictionary<string,VoiceCommandSet> InstalledCommandSets { get; }
public static IReadOnlyDictionary<string,VoiceCommandSet> InstalledCommandSets { [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")] get; }
var iMapView = VoiceCommandManager.installedCommandSets;
Public Shared ReadOnly Property InstalledCommandSets As IReadOnlyDictionary(Of String, VoiceCommandSet)

属性值

已安装命令集的字典,这些命令集在语音命令定义 (VCD) 文件中设置了 Name 属性。

属性

注解

避免从 UI 线程调用此属性。 打开应用服务连接可能会占用大量资源。

适用于

另请参阅