clearWatch method
[This documentation is preliminary and is subject to change.]
Stops listening for updates to the current geographical location.
![]() ![]() |
Syntax
HRESULT retVal = object.clearWatch(watchId);
Standards information
- Geolocation API Specification, Section 5.1
Parameters
watchId [in]
Type: longThe ID of the watch operation to cancel. This value is returned by the watchPosition method.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If the watchId parameter does not correspond to any watch process started by a previous call to the watchPosition method, then 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, please see Defining Document Compatibility.
See also
Reference
Build date: 1/26/2012
.png)
.png)