ArcGIS Pro 2.7 API Reference Guide
GetSelectedDataSourceMember Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : GetSelectedDataSourceMember Method
Returns the selected DataSourceMember.
Syntax
public DataSourceMember GetSelectedDataSourceMember()
Public Function GetSelectedDataSourceMember() As DataSourceMember

Return Value

The selected DataSourceMember or null
Remarks
Only one DataSourceMember can be selected at one time.
A DataSourceMember will only be selected when the TOC is in the "List By Data Sources" view mode.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members