共用方式為


VoiceCommandServiceConnection.ReportFailureAsync(VoiceCommandResponse) 方法

定義

傳送回應給 Cortana ,指出語音命令失敗。

public:
 virtual IAsyncAction ^ ReportFailureAsync(VoiceCommandResponse ^ response) = ReportFailureAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ReportFailureAsync(VoiceCommandResponse const& response);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ReportFailureAsync(VoiceCommandResponse response);
function reportFailureAsync(response)
Public Function ReportFailureAsync (response As VoiceCommandResponse) As IAsyncAction

參數

response
VoiceCommandResponse

來自背景 App Service 的回應,用於進度、確認、厘清、完成或失敗畫面顯示在 Cortana 畫布上。

傳回

作業完成時會呼叫非同步處理常式。

屬性

適用於

另請參閱