Share via


VoiceCommandResponse.CreateResponseForPrompt Method

Definition

Overloads

CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage)

Creates a VoiceCommandResponse object used in calls to RequestConfirmationAsync or RequestDisambiguationAsync.

CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)

Creates a VoiceCommandResponse object used in calls to RequestConfirmationAsync or RequestDisambiguationAsync.

CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage)

public:
 static VoiceCommandResponse ^ CreateResponseForPrompt(VoiceCommandUserMessage ^ message, VoiceCommandUserMessage ^ repeatMessage);
/// [Windows.Foundation.Metadata.Overload("CreateResponseForPrompt")]
 static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage const& message, VoiceCommandUserMessage const& repeatMessage);
[Windows.Foundation.Metadata.Overload("CreateResponseForPrompt")]
public static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage message, VoiceCommandUserMessage repeatMessage);
function createResponseForPrompt(message, repeatMessage)
Public Shared Function CreateResponseForPrompt (message As VoiceCommandUserMessage, repeatMessage As VoiceCommandUserMessage) As VoiceCommandResponse

Parameters

message
VoiceCommandUserMessage

The initial message that is spoken by Cortana and shown on the Cortana canvas. This message should be one of the following:

  • 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).
repeatMessage
VoiceCommandUserMessage

The secondary message that is spoken by Cortana and shown on the Cortana canvas, if a response was not understood. This message should be both a variation of the first message and one of the following:

  • 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

Applies to

CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)

public:
 static VoiceCommandResponse ^ CreateResponseForPrompt(VoiceCommandUserMessage ^ message, VoiceCommandUserMessage ^ repeatMessage, IIterable<VoiceCommandContentTile ^> ^ contentTiles);
/// [Windows.Foundation.Metadata.Overload("CreateResponseForPromptWithTiles")]
 static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage const& message, VoiceCommandUserMessage const& repeatMessage, IIterable<VoiceCommandContentTile> const& contentTiles);
[Windows.Foundation.Metadata.Overload("CreateResponseForPromptWithTiles")]
public static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage message, VoiceCommandUserMessage repeatMessage, IEnumerable<VoiceCommandContentTile> contentTiles);
function createResponseForPrompt(message, repeatMessage, contentTiles)
Public Shared Function CreateResponseForPrompt (message As VoiceCommandUserMessage, repeatMessage As VoiceCommandUserMessage, contentTiles As IEnumerable(Of VoiceCommandContentTile)) As VoiceCommandResponse

Parameters

message
VoiceCommandUserMessage

The initial message that is spoken by Cortana and shown on the Cortana canvas. This message should be one of the following:

  • 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).
repeatMessage
VoiceCommandUserMessage

The secondary message that is spoken by Cortana and shown on the Cortana canvas, if a response was not understood. This message should be both a variation of the first message and one of the following:

  • 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

IIterable<VoiceCommandContentTile>

IEnumerable<VoiceCommandContentTile>

The collection of assets, containing image and text data, shown 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

Applies to