NavigationService.GoBack Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Navigates to the most recent entry in the back navigation history, or throws an exception if no entry exists in back navigation.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | There are no entries in the back navigation history. |
Before calling the GoBack method, check the value of the CanGoBack property to determine if an entry exists in the back navigation history.
Show: