ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / SetSelection Method
The selection to set

In This Topic
    SetSelection Method (FeatureSceneLayer)
    In This Topic
    Sets the current selection. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetSelection( 
       Selection selection
    )
    Public Sub SetSelection( _
       ByVal selection As Selection _
    ) 

    Parameters

    selection
    The selection to set
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    No associated feature service
    Remarks
    SetSelection can only be used on feature scene layers that have an associated feature service. Check HasAssociatedFeatureService property to determine if the FeatureSceneLayer has an associated feature service. Calling SetSelection() on a FeatureSceneLayer with no associated feature service will throw a System.InvalidOperationException
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also