ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Core.DeviceLocation Namespace / IDeviceLocationService Interface / UpdateProperties Method
Example

In This Topic
    UpdateProperties Method (IDeviceLocationService)
    In This Topic
    Updates properties on the current device location source. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    void UpdateProperties( 
       DeviceLocationProperties props
    )
    Sub UpdateProperties( _
       ByVal props As DeviceLocationProperties _
    ) 

    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(() =>
      {
        // 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);
      });
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also