INavigationLoadUrl Method (LoadUrlParameters, TimeSpan) |
Navigates to a resource identified by the given
LoadUrlParameters, with the specified timout.
Namespace:
DotNetBrowser.Navigation
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.1
Syntax Task<LoadResult> LoadUrl(
LoadUrlParameters parameters,
TimeSpan timeout
)
Parameters
- parameters
- Type: DotNetBrowser.NavigationLoadUrlParameters
The parameters such as URL, POST data, and HTTP headers. - timeout
- Type: SystemTimeSpan
The timeout for the loading operation.
Return Value
Type:
TaskLoadResult
A task that represents the asynchronous loading operation.
The
LoadResult 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 |
---|
ArgumentNullException | The parameters is null. |
ObjectDisposedException | The INavigation has already been disposed. |
See Also