Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

clearWatch method

Stops listening for updates to the current geographical location.

Geolocation API Specification, Section 5.1Internet Explorer 9

Syntax


HRESULT retVal = object.clearWatch(watchId);

Parameters

watchId [in]

Type: long

The ID of the watch operation to cancel. This value is returned by the IWebGeolocation::watchPosition method.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

Remarks

If the watchId parameter does not correspond to any watch process started by a previous call to the IWebGeolocation::watchPosition method, this method returns and no further action is taken.

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

See also

Reference
IWebGeolocation
geolocation

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.