VoiceCommandDefinitionManager
VoiceCommandDefinitionManager
VoiceCommandDefinitionManager
VoiceCommandDefinitionManager
Class
Definition
A static class that enables registering and using command sets from a Voice Command Data (VCD) file.
public : static class VoiceCommandDefinitionManagerpublic static class VoiceCommandDefinitionManagerPublic Static Class VoiceCommandDefinitionManager// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
InstalledCommandDefinitions InstalledCommandDefinitions InstalledCommandDefinitions InstalledCommandDefinitions
A dictionary that contains all installed command sets that have a Name attribute set in the Voice Command Definition (VCD) file.
Note
Opening an app service connection can be resource intensive. Avoid accessing this property during time-sensitive operations, especially from the UI thread or when Suspending.
public : static IMapView<string, VoiceCommandDefinition> InstalledCommandDefinitions { get; }public static IReadOnlyDictionary<string, VoiceCommandDefinition> InstalledCommandDefinitions { get; }Public Static ReadOnly Property InstalledCommandDefinitions As IReadOnlyDictionary<string, VoiceCommandDefinition>// You can use this property in JavaScript.
- Value
- IMapView<PlatForm::String, VoiceCommandDefinition> IReadOnlyDictionary<string, VoiceCommandDefinition> IReadOnlyDictionary<string, VoiceCommandDefinition> IReadOnlyDictionary<string, VoiceCommandDefinition>
The dictionary of installed command sets that have a Name attribute set in the Voice Command Definition (VCD) file.
- See Also
Methods
InstallCommandDefinitionsFromStorageFileAsync(StorageFile) InstallCommandDefinitionsFromStorageFileAsync(StorageFile) InstallCommandDefinitionsFromStorageFileAsync(StorageFile) InstallCommandDefinitionsFromStorageFileAsync(StorageFile)
Installs the CommandSet elements in a Voice Command Definition (VCD) file.
public : static IAsyncAction InstallCommandDefinitionsFromStorageFileAsync(StorageFile file)public static IAsyncAction InstallCommandDefinitionsFromStorageFileAsync(StorageFile file)Public Static Function InstallCommandDefinitionsFromStorageFileAsync(file As StorageFile) As IAsyncAction// You can use this method in JavaScript.
An object representing a Voice Command Definition (VCD) file.
An asynchronous handler called when the operation is complete.
Remarks
Call this method only from your OnLaunched override, or a Resuming event handler.
Do not call this method from a Suspending event handler as the action might take longer than the time allotted by the system for app suspension.
- See Also