VoiceCommandResponse.CreateResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateResponse(VoiceCommandUserMessage) |
Creates a VoiceCommandResponse object used in calls to ReportProgressAsync, ReportSuccessAsync or ReportFailureAsync. |
CreateResponse(VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>) |
Creates a VoiceCommandResponse object used in calls to ReportProgressAsync, ReportSuccessAsync or ReportFailureAsync. |
CreateResponse(VoiceCommandUserMessage)
Creates a VoiceCommandResponse object used in calls to ReportProgressAsync, ReportSuccessAsync or ReportFailureAsync.
public:
static VoiceCommandResponse ^ CreateResponse(VoiceCommandUserMessage ^ userMessage);
/// [Windows.Foundation.Metadata.Overload("CreateResponse")]
static VoiceCommandResponse CreateResponse(VoiceCommandUserMessage const& userMessage);
[Windows.Foundation.Metadata.Overload("CreateResponse")]
public static VoiceCommandResponse CreateResponse(VoiceCommandUserMessage userMessage);
function createResponse(userMessage)
Public Shared Function CreateResponse (userMessage As VoiceCommandUserMessage) As VoiceCommandResponse
Parameters
- userMessage
- VoiceCommandUserMessage
The message that is spoken by Cortana and shown on the Cortana canvas. This message should be:
- An informative statement on progress, completion, and error screens (see ReportProgressAsync, ReportSuccessAsync, ReportFailureAsync).
- An unambiguous question that can be answered with either yes or no on confirmation screens (see RequestConfirmationAsync).
- A request for the user to select from the list of choices presented on disambiguation screens (see RequestDisambiguationAsync).
Returns
The response from the background app service for progress, completion, confirmation, or disambiguation screens displayed on the Cortana canvas.
- Attributes
See also
- CreateResponse(VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)
- elements and attributes v1.2
- Cortana interactions
- Cortana design guidelines
- Cortana voice command sample
Applies to
CreateResponse(VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)
Creates a VoiceCommandResponse object used in calls to ReportProgressAsync, ReportSuccessAsync or ReportFailureAsync.
public:
static VoiceCommandResponse ^ CreateResponse(VoiceCommandUserMessage ^ message, IIterable<VoiceCommandContentTile ^> ^ contentTiles);
/// [Windows.Foundation.Metadata.Overload("CreateResponseWithTiles")]
static VoiceCommandResponse CreateResponse(VoiceCommandUserMessage const& message, IIterable<VoiceCommandContentTile> const& contentTiles);
[Windows.Foundation.Metadata.Overload("CreateResponseWithTiles")]
public static VoiceCommandResponse CreateResponse(VoiceCommandUserMessage message, IEnumerable<VoiceCommandContentTile> contentTiles);
function createResponse(message, contentTiles)
Public Shared Function CreateResponse (message As VoiceCommandUserMessage, contentTiles As IEnumerable(Of VoiceCommandContentTile)) As VoiceCommandResponse
Parameters
- message
- VoiceCommandUserMessage
The message that is spoken by Cortana and shown on the Cortana canvas. This message should be:
- An informative statement on progress, completion, and error screens (see ReportProgressAsync, ReportSuccessAsync, ReportFailureAsync).
- An unambiguous question that can be answered with either yes or no on confirmation screens (see RequestConfirmationAsync).
- A request for the user to select from the list of choices presented on disambiguation screens (see RequestDisambiguationAsync).
- contentTiles
The collection of VoiceCommandContentTile objects, containing image and text data, shown as result cards on the Cortana canvas.
Returns
The response from the background app service for progress, completion, confirmation, or disambiguation screens displayed on the Cortana canvas.
- Attributes
See also
- CreateResponse(VoiceCommandUserMessage)
- elements and attributes v1.2
- Cortana interactions
- Cortana design guidelines
- Cortana voice command sample