ArcGIS Pro 2.6 API Reference Guide
SignIn Method

ArcGIS.Desktop.Core Namespace > ArcGISPortal Class : SignIn Method
Synchronous method to Sign on to this portal instance. This method should be called from within a QueuedTask or System.Threading.Task.
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. Known issue: A thread check is not enforced.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

ArcGISPortal Class
ArcGISPortal Members