Public Function AddPortal( _ ByVal portalUri As Uri _ ) As ArcGISPortal
public ArcGISPortal AddPortal( Uri portalUri )
Parameters
- portalUri
- The Uri of the portal to be added
Return Value
A ArcGISPortal for the provided portal Uri
Public Function AddPortal( _ ByVal portalUri As Uri _ ) As ArcGISPortal
public ArcGISPortal AddPortal( Uri portalUri )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | Thrown when a method is called on the wrong Pro thread |
| System.ArgumentException | The portal Uri was invalid or there was an error adding the portal to the ArcGISPortalManager |
{
var portalUri = new Uri("http://myportal.esri.com/portal/", UriKind.Absolute);
ArcGISPortalManager.Current.AddPortal(portalUri);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)