ArcGIS Pro 2.9 API Reference Guide
GetFormattedPortalUri Method (ArcGISSignOn)

ArcGIS.Core.SystemCore Namespace > ArcGISSignOn Class : GetFormattedPortalUri Method
The portal uri to format
Ensures that a portal URI is formatted correctly.
Syntax
public Tuple<bool,Uri> GetFormattedPortalUri( 
   Uri portalUri
)
Public Function GetFormattedPortalUri( _
   ByVal portalUri As Uri _
) As Tuple(Of Boolean,Uri)

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, Windows 8.1

See Also

Reference

ArcGISSignOn Class
ArcGISSignOn Members