ArcGIS Pro 2.7 API Reference Guide
SelectDataSourceMember Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : SelectDataSourceMember Method
The DataSourceMember to be selected or null
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 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members