ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / SelectDataSourceMember Method
The DataSourceMember to be selected or null

In This Topic
    SelectDataSourceMember Method
    In This Topic
    Selects the DataSourceMember in the TOC.
    Syntax
    public void SelectDataSourceMember( 
       DataSourceMember dataSourceMember
    )
    Public Sub SelectDataSourceMember( _
       ByVal dataSourceMember As DataSourceMember _
    ) 

    Parameters

    dataSourceMember
    The DataSourceMember to be selected or null
    Remarks
    DataSourceMembers can only be selected when the TOC is in "List By Data Source" mode otherwise the selection is ignored.
    Passing in null for the DataSourceMember is equivalent to clearing the selection in the TOC
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also