| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
//Is there a current device source?
var src = DeviceLocationService.Instance.GetSource();
if (src == null)
return;//no current source
//Note: Run within a QueuedTask
DeviceLocationService.Instance.Close();
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)