共用方式為


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 執行緒呼叫此屬性。 開啟應用程式服務連線可能需要大量資源。

適用於

另請參閱