INavigationLoadUrl Method (String, TimeSpan) |
Navigates to a resource identified by a URL, with the specified timeout.
Namespace:
DotNetBrowser.Navigation
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax Task<NavigationResult> LoadUrl(
string url,
TimeSpan timeout
)
Parameters
- url
- Type: SystemString
The URL of the resource to load. Cannot be null, empty or contain only white space. - timeout
- Type: SystemTimeSpan
The timeout for the loading operation.
Return Value
Type:
TaskNavigationResult
A task that represents the asynchronous loading operation.
The
NavigationResult indicates if the loading operation has been completed, stopped or failed.
The task can throw
if the loading operation hasn't been completed within a
timeout.
Exceptions Exception | Condition |
---|
ArgumentException | The url is null, empty or contain only white space. |
ObjectDisposedException | The INavigation has already been disposed. |
See Also