ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapMemberIDSet Class / Contains Method / Contains(MapMember) Method
The MapMember to check.
Example

In This Topic
    Contains(MapMember) Method
    In This Topic
    Determines if records from the specified mapMember are in the MapMemberIDSet.
    Syntax
    public bool Contains( 
       MapMember mapMember
    )
    Public Overloads Function Contains( _
       ByVal mapMember As MapMember _
    ) As Boolean

    Parameters

    mapMember
    The MapMember to check.
    Example
    Get OIDS from a SelectionSet for a given MapMember
    if (selSet.Contains(us_zips_layer))
    {
      var oids = selSet[us_zips_layer];
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also