SignOut Method (ArcGISPortal)
Sign out from this portal instance 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.
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.0 or higher.