Windows phone 我应该选择哪些代码以合法退出Windows Phone应用程序?

Windows phone 我应该选择哪些代码以合法退出Windows Phone应用程序?,windows-phone,Windows Phone,我在Windows Phone Marketplace中有7个应用程序,但我有一个问题。我的仪表板向我显示有关使用退出应用程序的QuitException(我从stackoverflow中找到)的崩溃报告。哪一个是申请的合法退出?你能帮我一下吗?按BackKeyPress键 protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { base.OnBackKeyPress(e);

我在Windows Phone Marketplace中有7个应用程序,但我有一个问题。我的仪表板向我显示有关使用退出应用程序的QuitException(我从stackoverflow中找到)的崩溃报告。哪一个是申请的合法退出?你能帮我一下吗?

按BackKeyPress键

protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
{
    base.OnBackKeyPress(e);
    e.Cancel = true;
}

谢谢你的回答,这合法吗?如果我使用这些代码,我的应用程序会再次向我发送崩溃报告吗?