ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / GetSelectedDataSourceMember Method

In This Topic
    GetSelectedDataSourceMember Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also