ArcGIS Pro 2.6 API Reference Guide
GetOptions Method
Example 

ArcGIS.Desktop.Mapping Namespace > Snapping Class : GetOptions Method
Gets the snapping options for the specified map. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public static SnappingOptions GetOptions( 
   Map map
)
Public Shared Function GetOptions( _
   ByVal map As Map _
) As SnappingOptions

Parameters

map

Return Value

The snapping options, or null if something went wrong trying to read the CIM snapping options
Exceptions
ExceptionDescription
if map is null
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Snapping options are stored within the CIM.
Example
var options = Snapping.GetOptions(map); // obtains a local copy of the options
options.ZToleranceEnabled = true; // change the ZToleranceEnabled property within the local copy
Snapping.SetOptions(map, options); //commits the local copy into the project
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Snapping Class
Snapping Members