Export (0) Print
Expand All

code property

Returns an integer value that indicates the type of error that occurred while trying to retrieve geographic information.

Geolocation API Specification, Section 5.5Internet Explorer 9

 

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

Remarks

Windows Internet Explorer 9. This property is supported only for webpages displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft