ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FieldDescription Class / IsReadOnly Property
Example

In This Topic
    IsReadOnly Property (FieldDescription)
    In This Topic
    Gets or sets whether a field is read-only - values in this field cannot be modified.
    Syntax
    public bool IsReadOnly {get; set;}
    Public Property IsReadOnly As Boolean
    Example
    Get Field Definitions
    //var featSceneLayer = ....;
    await QueuedTask.Run(() =>
    {
      //Get only the readonly fields
      var readOnlyFields = featSceneLayer.GetFieldDescriptions()
                                  .Where(fdesc => fdesc.IsReadOnly);
      //etc
      
    });
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also