ArcGIS Pro 3.7 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 Property IsReadOnly As Boolean
    public bool IsReadOnly {get; set;}
    Example
    Get Field Definitions
    {
      // Note: call within QueuedTask.Run()
      {
        //Get only the readonly fields
        var readOnlyFields = featSceneLayer.GetFieldDescriptions()
                                  .Where(fdesc => fdesc.IsReadOnly);
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also