ArcGIS Pro 3.7 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 ReadOnly Property IsEditable As Boolean
    public bool IsEditable {get;}
    Remarks
    Returns true only when (a) you have data source level permission to edit and (b) it is made editable on the map.

    Use the extension method "CanEditData" to determine if the data represented by a MapMember can be edited independently of the TOC Editable state.

    Example
    Change layer visibility, editability, snappability
    {
        if (!layer.IsVisible)
            layer.SetVisibility(true);
    
        if (layer is FeatureLayer featureLayerToChange)
        {
            if (!featureLayer.IsEditable)
                featureLayer.SetEditable(true);
    
            if (!featureLayer.IsSnappable)
                featureLayer.SetSnappable(true);
        }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also