ArcGIS Pro 2.6 API Reference Guide
GetSelection Method (FeatureSceneLayer)

ArcGIS.Desktop.Mapping Namespace > FeatureSceneLayer Class : GetSelection Method
Gets the current selection. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Selection GetSelection()
Public Function GetSelection() As Selection

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
No associated feature service
Remarks
GetSelection() 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 GetSelection() on a FeatureSceneLayer with no associated feature service will throw a System.InvalidOperationException
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

FeatureSceneLayer Class
FeatureSceneLayer Members