Gets the current token for the session. The ArcGISPortal class automatically manages the token expiration. This value should not be cached. 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.
Public Function GetToken() As String
Return Value
a
System.string that is the current token
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.0 or higher.