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

In This Topic
    FromSelection Method
    In This Topic
    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
    )
    Public Shared Function FromSelection( _
       ByVal mapMember As MapMember, _
       ByVal selection As Selection _
    ) As SelectionSet

    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