ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicFeatureLayer Class / IsEditable Property
Example

In This Topic
    IsEditable Property (BasicFeatureLayer)
    In This Topic
    Gets whether a layer is editable.
    Syntax
    public bool IsEditable {get;}
    Public ReadOnly Property IsEditable As Boolean
    Remarks
    Returns true only when (a) you have data source level permission to edit and (b) it is made editable on the map.
    Example
    Change layer visibility, editability, snappability
    if (!layer.IsVisible)
      layer.SetVisibility(true);
    
    if (layer is FeatureLayer featureLayer)
    {
      if (!featureLayer.IsEditable)
        featureLayer.SetEditable(true);
    
      if (!featureLayer.IsSnappable)
        featureLayer.SetSnappable(true);
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also