Share via


VoiceCommandResponse.CreateResponse Method

Definition

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)

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:

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

CreateResponse(VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)

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:

contentTiles

IIterable<VoiceCommandContentTile>

IEnumerable<VoiceCommandContentTile>

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

Applies to