ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Mapping.DeviceLocation Namespace / MapDeviceLocationService Class / SetDeviceLocationOptions Method
A MapDeviceLocationOptions

In This Topic
    SetDeviceLocationOptions Method (MapDeviceLocationService)
    In This Topic
    Sets a MapDeviceLocationOptions to update the current MapDeviceLocationService settings. This method must be called on the MCT. Use QueuedTask.Run. Use QueuedTask.Run.
    Syntax
    public void SetDeviceLocationOptions( 
       MapDeviceLocationOptions options
    )
    Public Sub SetDeviceLocationOptions( _
       ByVal options As MapDeviceLocationOptions _
    ) 

    Parameters

    options
    A MapDeviceLocationOptions
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Value cannot be null: options
    The active map view cannot be null
    A DeviceLocationSource must be open
    Remarks
    A valid DeviceLocationSource must be open or a System.InvalidOperationException will be thrown. Refer to ArcGIS.Desktop.Core.DeviceLocation.IDeviceLocationService.Open.
    There must be an active map view with an associated map.
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also