ArcGIS Pro 2.9 API Reference Guide
SignIn Method

ArcGIS.Desktop.Core Namespace > ArcGISPortal Class : SignIn Method
Synchronous method to Sign on to this portal instance.
Syntax
public SignInResult SignIn()
Public Function SignIn() As SignInResult

Return Value

A SignInResult containing the SignIn status
Remarks
If the sign on information is not cached, the OAuth dialog popup will be displayed. 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.
Known issue: A thread check is not enforced.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

ArcGISPortal Class
ArcGISPortal Members