共用方式為


VoiceCommandResponse.CreateResponse 方法

定義

多載

CreateResponse(VoiceCommandUserMessage)

建立用於呼叫ReportProgressAsyncReportSuccessAsyncReportFailureAsyncVoiceCommandResponse物件。

CreateResponse(VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)

建立用於呼叫ReportProgressAsyncReportSuccessAsyncReportFailureAsyncVoiceCommandResponse物件。

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

參數

userMessage
VoiceCommandUserMessage

Cortana所說出的訊息,並顯示在Cortana畫布上。 此訊息應該是:

傳回

來自背景 App Service 的回應,以取得在 Cortana 畫布上顯示的進度、完成、確認或混淆畫面。

屬性

另請參閱

適用於

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

參數

message
VoiceCommandUserMessage

Cortana所說出的訊息,並顯示在Cortana畫布上。 此訊息應該是:

contentTiles

IIterable<VoiceCommandContentTile>

IEnumerable<VoiceCommandContentTile>

VoiceCommandContentTile物件的集合,其中包含影像和文字資料,顯示為Cortana畫布上的結果卡片。

傳回

來自背景 App Service 的回應,以取得在 Cortana 畫布上顯示的進度、完成、確認或混淆畫面。

屬性

另請參閱

適用於