ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.SystemCore Namespace / ArcGISSignOn Class / GetFormattedPortalUri Method
The portal uri to format
Version

GetFormattedPortalUri Method (ArcGISSignOn)
Ensures that a portal URI is formatted correctly.
Syntax
public Tuple<bool,Uri> GetFormattedPortalUri( 
   Uri portalUri
)

Parameters

portalUri
The portal uri to format

Return Value

Remarks
If an arbitrary uri is passed in that is not for a portal or arcgis online, the Uri is returned unchanged along with a tuple.Item1 value of false. Otherwise, the "cleaned" portal Uri is returned in Tuple.Item2 with a tuple.Item1 value of true
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also