ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicFeatureLayer Class / SetDisplayField Method
The Display Field name.

In This Topic
    SetDisplayField Method (BasicFeatureLayer)
    In This Topic
    Sets the name of the attribute field that will be used to identify features or rows. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetDisplayField( 
       string displayField
    )
    Public Sub SetDisplayField( _
       ByVal displayField As String _
    ) 

    Parameters

    displayField
    The Display Field name.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The display field is also used in map tips, popups, editing tools and selection chip. The display field must be able to be represented as a string.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also