Add 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.
Parameters
- portalUri
- The Uri of the portal to be added
Return Value
A
ArcGISPortal for the provided portal Uri
ArcGISPortalManager: Add a portal to the list of portals
var portalUri = new Uri("http://myportal.esri.com/portal/", UriKind.Absolute);
ArcGISPortalManager.Current.AddPortal(portalUri);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.