ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / GetFieldDescriptions Method
Example

In This Topic
    GetFieldDescriptions Method (FeatureSceneLayer)
    In This Topic
    Returns a list of field descriptions. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public List<FieldDescription> GetFieldDescriptions()
    Public Function GetFieldDescriptions() As List(Of FieldDescription)

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    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