ArcGIS Pro 2.8 API Reference Guide
SetEditable Method (BasicFeatureLayer)

ArcGIS.Desktop.Mapping Namespace > BasicFeatureLayer Class : SetEditable Method
A boolean to toggle editability.
Enables or disables editing on a basic feature layer. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetEditable( 
   bool isEditable
)
Public Sub SetEditable( _
   ByVal isEditable As Boolean _
) 

Parameters

isEditable
A boolean to toggle editability.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Just setting it true will not make a basic feature layer editable unless you have permission to edit on data source level.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

BasicFeatureLayer Class
BasicFeatureLayer Members