ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicFeatureLayer Class / SetDisplayExpressionInfo Method
Your custom expression info.

In This Topic
    SetDisplayExpressionInfo Method (BasicFeatureLayer)
    In This Topic
    Sets the display expression info with an arcade expression that will be used to identify features or rows. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetDisplayExpressionInfo( 
       CIMExpressionInfo displayExpressionInfo
    )
    Public Sub SetDisplayExpressionInfo( _
       ByVal displayExpressionInfo As CIMExpressionInfo _
    ) 

    Parameters

    displayExpressionInfo
    Your custom expression info.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The display expression is also used in map tips, popups, editing tools and selection chip.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also