ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SelectionSet Class / FromSelection Method
The MapMember object from which the Selection object was derived
The ArcGIS.Core.Data.Selection object containing the list of selected Object IDs for the given mapMember
Version

FromSelection Method
Creates a SelectionSet object from a given MapMember and a corresponding ArcGIS.Core.Data.Selection. A Selection object is returned by some methods such as BasicFeatureLayer.GetSelection. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static SelectionSet FromSelection( 
   MapMember mapMember,
   Selection selection
)

Parameters

mapMember
The MapMember object from which the Selection object was derived
selection
The ArcGIS.Core.Data.Selection object containing the list of selected Object IDs for the given mapMember

Return Value

A SelectionSet
Exceptions
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.2 or higher.
See Also