Public Sub UpdateProperties( _ ByVal props As DeviceLocationProperties _ )
public void UpdateProperties( DeviceLocationProperties props )
Parameters
- props
Public Sub UpdateProperties( _ ByVal props As DeviceLocationProperties _ )
public void UpdateProperties( DeviceLocationProperties props )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
{
//Note: Run within QueuedTask
// Get the current device location properties
var dlProps = DeviceLocationService.Instance.GetProperties();
//Change the accuracy threshold
dlProps.AccuracyThreshold = 22.5; // meters
// Update the properties on the device location source
DeviceLocationService.Instance.UpdateProperties(dlProps);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)