ArcGIS Pro 2.8 API Reference Guide
SetDeviceLocationOptions Method (MapDeviceLocationService)

ArcGIS.Desktop.Mapping.DeviceLocation Namespace > MapDeviceLocationService Class : SetDeviceLocationOptions Method
A MapDeviceLocationOptions
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 10, Windows 8.1

See Also

Reference

MapDeviceLocationService Class
MapDeviceLocationService Members