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.
Namespace: System.Windows.Navigation
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Sub GoBack
public void GoBack()
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | There are no entries in the back navigation history. |
Remarks
Before calling the GoBack method, check the value of the CanGoBack property to determine if an entry exists in the back navigation history.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone
See Also
Reference
System.Windows.Navigation Namespace