ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping.DeviceLocation Namespace / IMapDeviceLocationService Interface / SetDeviceLocationEnabled Method
System.Boolean
Version

SetDeviceLocationEnabled Method (IMapDeviceLocationService)
Enables (or disables) the current DeviceLocationSource. Use ArcGIS.Desktop.Core.DeviceLocation.IDeviceLocationService.Open prior to enabling the DeviceLocationSource. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
void SetDeviceLocationEnabled( 
   bool enable
)

Parameters

enable
System.Boolean
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also