ArcGIS Pro 2.7 API Reference Guide
SetActivePortal Method

ArcGIS.Desktop.Core Namespace > ArcGISPortalManager Class : SetActivePortal Method
The portal to be set active
Sets the currently active portal. This will result in the ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent being published.
Syntax
public bool SetActivePortal( 
   ArcGISPortal portalObj
)
Public Function SetActivePortal( _
   ByVal portalObj As ArcGISPortal _
) As Boolean

Parameters

portalObj
The portal to be set active

Return Value

Exceptions
ExceptionDescription
This method or property must be called on a valid ArcGISPortal object. This object may have been edited or removed.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ArcGISPortalManager Class
ArcGISPortalManager Members