Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. async void DoRestartRequest(string text)
  2. {
  3. AppRestartFailureReason result =
  4. await CoreApplication.RequestRestartAsync(text);
  5.  
  6. if (result == AppRestartFailureReason.NotInForeground ||
  7. result == AppRestartFailureReason.RestartPending ||
  8. result == AppRestartFailureReason.Other)
  9. {
  10. Debug.WriteLine(«RequestRestartAsync failed: {0}», result);
  11. }
  12. }
Add Comment
Please, Sign In to add comment