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

In This Topic
    UpdateProperties Method (DeviceLocationService)
    In This Topic
    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
    )
    Public 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(() =>
    {
      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

    ArcGIS Pro version: 3 or higher.
    See Also