ArcGIS Pro 3.3 API Reference Guide
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

In This Topic
    EditPortal Method
    In This Topic
    Change the Uri of the existing portal to be the new Portal Uri. 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.
    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
    Thrown when a method is called on the wrong Pro thread
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also