ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / Pane Class / Impersonate Method
The state to impersonate. The state may be a custom setting or an implicit one like a Pane ID.

In This Topic
    Impersonate Method
    In This Topic
    Allows a Pane to override the state it sets when activated.
    Syntax
    protected void Impersonate( 
       string paneID
    )
    Protected Sub Impersonate( _
       ByVal paneID As String _
    ) 

    Parameters

    paneID
    The state to impersonate. The state may be a custom setting or an implicit one like a Pane ID.
    Exceptions
    ExceptionDescription
    Thrown when an empty state is passed in.
    Remarks
    Panes set an implicit state within the overall application when activated. Many user interface elements respond to changes in application state; for example, different tabs appear depending on the type of Pane activated. When a Pane is activated, its DAML ID is by default added to application level State; the Impersonate method allows the Pane to override this behavior and instead specify a custom state. For example, when a Map is activated inside a Layout, the Layout impersonates a Map Pane so that all of the mapping functionality will become available to the activated Map.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also