ArcGIS Pro 2.6 API Reference Guide
SetSnapModes Method
Example 

ArcGIS.Desktop.Mapping Namespace > Snapping Class : SetSnapModes Method
a variable set of zero or more (comma-separated) SnapMode parameters expressed either as an array or as a variable length argument list

Sets the given snapping modes.

Syntax
public static void SetSnapModes( 
   params SnapMode[] modes
)
Public Shared Sub SetSnapModes( _
   ByVal ParamArray modes() As SnapMode _
) 

Parameters

modes
a variable set of zero or more (comma-separated) SnapMode parameters expressed either as an array or as a variable length argument list
Remarks
This method disables the current snapping modes and enables the given snapping modes. It is intended to efficiently set one or more snapping modes.
Example
Snapping.SetSnapModes(SnapMode.Midpoint); // sets only the Midpoint snapping mode 
Snapping.SetSnapModes(SnapMode.Point, SnapMode.Edge); // sets only Point and Edge snapping modes
Snapping.SetSnapModes(); //clear all snap modes
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Snapping Class
Snapping Members