ArcGIS Pro 3.7 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 Sub UpdateProperties( _
       ByVal props As DeviceLocationProperties _
    ) 
    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
    {
        //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);
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also