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

In This Topic
    GetFormattedPortalUri Method (ArcGISSignOn)
    In This Topic
    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

    ArcGIS Pro version: 3 or higher.
    See Also