Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns an integer value that indicates the type of error that occurred while trying to retrieve geographic information.
![]() ![]() |
Syntax
HRESULT value = object.get_code(* p);
Property values
Type: long
An long value corresponding to one of the following error conditions.
PositionError.PERMISSION_DENIED
The user has denied permission for the website to access geographic information.
PositionError.TIMEOUT
The request did not complete within the time allowed.
PositionError.POSITION_UNAVAILABLE
The geographic location could not be determined.
Standards information
- Geolocation API Specification, Section 5.5
Remarks
Windows Internet Explorer 9. This property is supported only for webpages displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.
.png)
.png)