VoiceCommandResponse.CreateResponseForPrompt 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
	参数
- message
 - VoiceCommandUserMessage
 
由 Cortana 说出并在 Cortana 画布上显示的初始消息。 此消息应为下列消息之一:
- 可在确认屏幕上使用“是”或“否”回答的明确问题, (请参阅 RequestConfirmationAsync) 。
 - 请求用户从消除歧义屏幕上显示的选项列表中进行选择 (请参阅 RequestDisambiguationAsync) 。
 
- repeatMessage
 - VoiceCommandUserMessage
 
如果未理解响应,则由 Cortana 说出并在 Cortana 画布上显示的辅助消息。 此消息应是第一条消息和以下消息之一的变体:
- 可在确认屏幕上使用“是”或“否”回答的明确问题, (请参阅 RequestConfirmationAsync) 。
 - 请求用户从消除歧义屏幕上显示的选项列表中进行选择 (请参阅 RequestDisambiguationAsync) 。
 
返回
来自后台应用服务对 Cortana 画布上显示的进度、完成、确认或消除歧义屏幕的响应。
- 属性
 
另请参阅
- CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)
 - 元素和特性 v1.2
 - Cortana 交互
 - Cortana 设计指南
 - Cortana 语音命令示例
 
适用于
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
	参数
- message
 - VoiceCommandUserMessage
 
由 Cortana 说出并在 Cortana 画布上显示的初始消息。 此消息应为下列消息之一:
- 可在确认屏幕上使用“是”或“否”回答的明确问题, (请参阅 RequestConfirmationAsync) 。
 - 请求用户从消除歧义屏幕上显示的选项列表中进行选择 (请参阅 RequestDisambiguationAsync) 。
 
- repeatMessage
 - VoiceCommandUserMessage
 
如果未理解响应,则由 Cortana 说出并在 Cortana 画布上显示的辅助消息。 此消息应是第一条消息和以下消息之一的变体:
- 可在确认屏幕上使用“是”或“否”回答的明确问题, (请参阅 RequestConfirmationAsync) 。
 - 请求用户从消除歧义屏幕上显示的选项列表中进行选择 (请参阅 RequestDisambiguationAsync) 。
 
- contentTiles
 
包含图像和文本数据的资产集合,显示在 Cortana 画布上。
返回
来自后台应用服务对 Cortana 画布上显示的进度、完成、确认或消除歧义屏幕的响应。
- 属性
 
另请参阅
- CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage)
 - 元素和特性 v1.2
 - Cortana 交互
 - Cortana 设计指南
 - Cortana 语音命令示例