ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / ClosePopups Method / ClosePopups(IEnumerable<PopupContent>) Method

In This Topic
    ClosePopups(IEnumerable<PopupContent>) Method
    In This Topic
    Close all popup windows containing any of the provided popup content whether pinned or not pinned (active). You must be on the UI thread to call this function
    Syntax
    public void ClosePopups( 
       IEnumerable<PopupContent> customContent
    )
    Public Overloads Sub ClosePopups( _
       ByVal customContent As IEnumerable(Of PopupContent) _
    ) 

    Parameters

    customContent
    Exceptions
    ExceptionDescription
    Popups cannot be accessed from a thread other than the thread they were created on
    customContent
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also