ArcGIS Pro 2.7 API Reference Guide
Impersonate Method

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.
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 10, Windows 8.1

See Also

Reference

Pane Class
Pane Members
Unimpersonate Method