code property

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

Remarks

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