ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core.DeviceLocation Namespace / DeviceLocationService Class / UpdateProperties Method
Example

UpdateProperties Method (DeviceLocationService)
Updates properties on the current device location source. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void UpdateProperties( 
   DeviceLocationProperties props
)

Parameters

props
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run
Example
Update Properties on the Current Device Location Source
await QueuedTask.Run(() =>
{
  var dlProps = DeviceLocationService.Instance.GetProperties();
  //Change the accuracy threshold
  dlProps.AccuracyThreshold = 22.5; // meters

  DeviceLocationService.Instance.UpdateProperties(dlProps);
});
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.7 or higher.
See Also