ArcGIS Pro 2.8 API Reference Guide
SetDeviceLocationEnabled Method (IMapDeviceLocationService)

ArcGIS.Desktop.Mapping.DeviceLocation Namespace > IMapDeviceLocationService Interface : SetDeviceLocationEnabled Method
System.Boolean
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
)
Sub SetDeviceLocationEnabled( _
   ByVal enable As Boolean _
) 

Parameters

enable
System.Boolean
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMapDeviceLocationService Interface
IMapDeviceLocationService Members