GeolocationPositionError Class

The error of a request of a position (https://w3c.github.io/geolocation/#position_error_interface).

public sealed class GeolocationPositionError

Properties

NameDescription
CodeGets the code of the error.
MessageGets a description of the error, for the developers.

Gets the code of the error.

public ushort Code { get; }

Gets a description of the error, for the developers.

public string Message { get; }

Constants

NameDescription
PermissionDeniedThe document is not allowed to read the position.
PositionUnavailableThe position cannot be acquired.
TimeoutThe position was not acquired before the timeout elapsed.

PermissionDenied

The document is not allowed to read the position.

public const ushort PermissionDenied = 1

PositionUnavailable

The position cannot be acquired.

public const ushort PositionUnavailable = 2

Timeout

The position was not acquired before the timeout elapsed.

public const ushort Timeout = 3