ArcGIS Pro 2.8 API Reference Guide
EditPortal Method

ArcGIS.Desktop.Core Namespace > ArcGISPortalManager Class : EditPortal Method
The existing portal whose Uri will be changed
The URI to use to replace the existing Uri of the existingPortalObj
Change the Uri of the existing portal to be the new Portal Uri.
Syntax

Parameters

existingPortalObj
The existing portal whose Uri will be changed
newPortalUri
The URI to use to replace the existing Uri of the existingPortalObj

Return Value

A ArcGISPortal with the changed Uri
Exceptions
ExceptionDescription
The portal Uri was invalid or there was an error changing the portal Uri
Remarks
The existing portal must currently be in the list of portals managed by the ArcGISPortalManager
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ArcGISPortalManager Class
ArcGISPortalManager Members