VoiceCommand VoiceCommand VoiceCommand VoiceCommand VoiceCommand Class


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
struct winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommand
public sealed class VoiceCommand
Public NotInheritable Class VoiceCommand
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Access VoiceCommand objects by calling GetVoiceCommandAsync on a VoiceCommandServiceConnection that references the appropriate Windows.ApplicationModel.AppService object.


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.

See also