Method GoTo
- Namespace
- DotNetBrowser.Navigation
- Assembly
- DotNetBrowser.dll
GoTo(int)
Navigates to a specific location at the given index
in the back-forward list.
Task<NavigationResult> GoTo(int index)
Parameters
index
intThe location of the item to load in the back-forward list. Cannot be negative or more than the number of items in the back-forward list.
Returns
- Task<NavigationResult>
A task that represents the asynchronous navigation operation. The NavigationResult indicates if the navigation operation has been completed, stopped or failed. The task can throw TimeoutException if the navigation operation hasn't been completed within a default timeout (100 seconds).
Exceptions
- ArgumentOutOfRangeException
The
index
is less than 0 or more than the number of items in the back-forward list.- ObjectDisposedException
The INavigation has already been disposed.