The command given to Cortana, using either speech or text, and routed to a background app.
The command must be declared in a Voice Command Definition (VCD) file registered by the app referred to in the command. See Launch a background app with voice commands in Cortana for more info on creating and registering a Voice Command Definition (VCD) file for your app.
public : sealed class VoiceCommand
public sealed class VoiceCommand
Public NotInheritable Class VoiceCommand
// This class does not provide a public constructor.
Windows 10 requirements
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
|CommandName CommandName CommandName CommandName CommandName||
Gets the value of the Name attribute for the Command element declared in the Voice Command Definition (VCD) file.
|Properties Properties Properties Properties Properties||
Gets a dictionary containing the semantic properties of the recognized phrase in the voice command.
|SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult||
Gets the SpeechRecognitionResult object representing the results returned by the voice command.