Navigates to a specific location at the given index in the back-forward list.
Namespace:
DotNetBrowser.Navigation
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax Task<NavigationResult> GoTo(
int index
)
Parameters
- index
- Type: SystemInt32
The 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.
Return Value
Type:
TaskNavigationResult
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
if the navigation operation hasn't been completed within a default timeout (100 seconds).
Exceptions Exception | Condition |
---|
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. |
See Also