ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / ArcGISPortalManager Class


In This Topic
    ArcGISPortalManager Class Methods
    In This Topic

    For a list of all members of this type, see ArcGISPortalManager members.

    Public Methods
     NameDescription
    Public MethodAdd the specified portal represented by the provided portal Uri to the list of portals. This will result in the ArcGIS.Desktop.Core.Events.ArcGISPortalAddedEvent being published. This method should be called from within a QueuedTask or System.Threading.Task unless the caller is within ArcGIS.Desktop.Framework.Contracts.ConfigurationManager.OnApplicationInitializing in which case the main thread should be used.
     
    Public MethodChange the Uri of the existing portal to be the new Portal Uri. This method should be called from within a QueuedTask or System.Threading.Task unless the caller is within ArcGIS.Desktop.Framework.Contracts.ConfigurationManager.OnApplicationInitializing in which case the main thread should be used.
     
    Public Method Get the currently active portal. This is the portal that has been set as the Active Portal either via the API or on the "Portals" backstage tab.  
    Public Method Get the Portal from the list of portals based on the provided portalURI  
    Public Method Get the enumeration of portals. This list correlates with the list of portals on the "Portals" tab on the Pro backstage.  
    Public MethodRemove the portal represented by the provided portal Uri from the list of portals. This will result in the ArcGIS.Desktop.Core.Events.ArcGISPortalRemovedEvent being published.  
    Public MethodSets the currently active portal. This will result in the ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent being published. This method should be called from within a QueuedTask or System.Threading.Task unless the caller is within ArcGIS.Desktop.Framework.Contracts.ConfigurationManager.OnApplicationInitializing in which case the main thread should be used.
     
    Top
    See Also