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

SelectDataSourceMember Method
Selects the DataSourceMember in the TOC.
Syntax
public void SelectDataSourceMember( 
   DataSourceMember 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