ArcGIS Pro 2.6 API Reference Guide
ArcGISPortal Class Methods


ArcGIS.Desktop.Core Namespace : ArcGISPortal Class

For a list of all members of this type, see ArcGISPortal members.

Public Methods
 NameDescription
Public Method Ensure the portal is a valid.  
Public Method Gets the username for the current connection This method should be called from within a QueuedTask or System.Threading.Task.  
Public Method 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.  
Public Method Gets whether this portal instance is the active portal  
Public Method Gets the sign on status of the portal instance. This method should be called from within a QueuedTask or System.Threading.Task.  
Public Method Synchronous method to Sign on to this portal instance. This method should be called from within a QueuedTask or System.Threading.Task.  
Public Method Asynchronous method to Sign on to this portal instance.  
Public Method Sign out from this portal instance This method should be called from within a QueuedTask or System.Threading.Task.  
Top
Extension Methods
 NameDescription
Public Extension Method Gets the list of base maps that are configured for the given portal
Public Extension Method Gets the groups from the user's community information.
Public Extension MethodExecutes a self query on the specified portal to return its ArcGIS.Desktop.Core.Portal.PortalInfo
Public Extension Method Gets the given username's content. Items are either in the home folder for the user, e.g. /content/users/{username} or in a subfolder of the home folder with the given folder ID. Multilevel folders are not supported.
Public Extension Method Searches for portal items from a query string.
Top
See Also

Reference

ArcGISPortal Class
ArcGIS.Desktop.Core Namespace