ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core Namespace / SignInResult Class
Members Example

In This Topic
    SignInResult Class
    In This Topic
    Contains the status of the Portal SignIn. This includes the success of failure of the SignIn and the current token (if succesfull)
    Syntax
    public class SignInResult 
    Public Class SignInResult 
    Example
    ArcGISPortalManager: Get a portal and Sign In, Set it Active
    //Find the portal to sign in with using its Uri...
    var portal = ArcGISPortalManager.Current.GetPortal(new Uri(uri, UriKind.Absolute));
    if (!portal.IsSignedOn())
    {
      //Calling "SignIn" will trigger the OAuth popup if your credentials are
      //not cached (eg from a previous sign in in the session)
      if (portal.SignIn().success)
      {
        //Set this portal as my active portal
        ArcGISPortalManager.Current.SetActivePortal(portal);
      }
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Core.SignInResult

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also