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
public ArcGISPortal AddPortal( Uri portalUri )
Public Function AddPortal( _ ByVal portalUri As Uri _ ) As ArcGISPortal
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, Windows 10