GeolocationPositionError Class
The error of a request of a position (https://w3c.github.io/geolocation/#position_error_interface).
public sealed class GeolocationPositionErrorProperties
| Name | Description |
|---|---|
| Code | Gets the code of the error. |
| Message | Gets a description of the error, for the developers. |
Code
Geolocation.csGets the code of the error.
public ushort Code { get; }Message
Geolocation.csGets a description of the error, for the developers.
public string Message { get; }Constants
| Name | Description |
|---|---|
| PermissionDenied | The document is not allowed to read the position. |
| PositionUnavailable | The position cannot be acquired. |
| Timeout | The position was not acquired before the timeout elapsed. |
PermissionDenied
The document is not allowed to read the position.
public const ushort PermissionDenied = 1Timeout
The position was not acquired before the timeout elapsed.
public const ushort Timeout = 3