Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async void DoRestartRequest(string text)
- {
- AppRestartFailureReason result =
- await CoreApplication.RequestRestartAsync(text);
- if (result == AppRestartFailureReason.NotInForeground ||
- result == AppRestartFailureReason.RestartPending ||
- result == AppRestartFailureReason.Other)
- {
- Debug.WriteLine(«RequestRestartAsync failed: {0}», result);
- }
- }
Add Comment
Please, Sign In to add comment