Table of Contents

Enum LoadResult

Namespace
DotNetBrowser.Navigation
Assembly
DotNetBrowser.dll

The loading result.

public enum LoadResult

Fields

Completed = 0

The page loading has completed.

The navigation has finished without a network error, or a same-document navigation, such as navigating to an anchor, has been committed. Error is null.

Failed = 1

The page loading has failed.

The navigation has failed with a network error other than Aborted, or an error page has been committed instead of the requested page. In these cases, Error contains the network error.

GoBack() and GoForward() also return this result, with Error set to null, when there is no entry to navigate to.

Stopped = 2

The page loading has stopped.

The navigation has been aborted with the Aborted error, for example, because Stop() has been called. Error is either Aborted or null.

Remarks

NavigationResult does not provide the HTTP status code of the response. To check it, use ResponseCode.

If the navigation does not finish within the timeout, the navigation task throws TimeoutException instead of returning a result.