ArcGIS Pro 2.7 API Reference Guide
AddPortal Method

ArcGIS.Desktop.Core Namespace > ArcGISPortalManager Class : AddPortal Method
The Uri of the portal to be added
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.
Syntax
public ArcGISPortal AddPortal( 
   Uri portalUri
)
Public Function AddPortal( _
   ByVal portalUri As Uri _
) As ArcGISPortal

Parameters

portalUri
The Uri of the portal to be added

Return Value

A ArcGISPortal for the provided portal Uri
Exceptions
ExceptionDescription
The portal Uri was invalid or there was an error adding the portal to the ArcGISPortalManager
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ArcGISPortalManager Class
ArcGISPortalManager Members