ArcGIS Pro 2.8 API Reference Guide
SetOptions Method
Example 

ArcGIS.Desktop.Mapping Namespace > Snapping Class : SetOptions Method
a SnappingOptions object that was obtained using GetOptions
Sets the snapping options for the specified map. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public static void SetOptions( 
   Map map,
   SnappingOptions options
)
Public Shared Sub SetOptions( _
   ByVal map As Map, _
   ByVal options As SnappingOptions _
) 

Parameters

map
options
a SnappingOptions object that was obtained using GetOptions
Exceptions
ExceptionDescription
if either of options or map is null
This method or property must be called within the lambda passed to QueuedTask.Run.
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

See Also

Reference

Snapping Class
Snapping Members