ArcGIS Pro 2.7 API Reference Guide
SetSelection Method (FeatureSceneLayer)

ArcGIS.Desktop.Mapping Namespace > FeatureSceneLayer Class : SetSelection Method
The selection to set
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 10, Windows 8.1

See Also

Reference

FeatureSceneLayer Class
FeatureSceneLayer Members