ArcGIS Pro 2.6 API Reference Guide
GetPortalInfoAsync Method

ArcGIS.Desktop.Core Namespace > ArcGISPortalExtensions Class : GetPortalInfoAsync Method
Executes a self query on the specified portal to return its ArcGIS.Desktop.Core.Portal.PortalInfo
Syntax
public static Task<PortalInfo> GetPortalInfoAsync( 
   ArcGISPortal portal
)
Public Shared Function GetPortalInfoAsync( _
   ByVal portal As ArcGISPortal _
) As Task(Of PortalInfo)

Parameters

portal

Return Value

Exceptions
ExceptionDescription
Thrown when an invalid portal is provided as the active portal.
You do not have permissions to access this resource or perform this operation.
Request failed: status code {status code}
Remarks
This method will return (via portal self) the view of the portal as seen by the current user, whether anonymous or logged in. It uses the current culture, as specified, for ArcGIS Pro. Portal info includes information such as the name, logo, featured items, group queries, organization info, etc. for this portal. If the user is not logged in, this call will return the default view of the portal. If the user is logged in, the view of the returned portal will be specific to the organization to which the user belongs. The default view of the portal is dependent on the culture of the user, which is obtained from the user's profile.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

ArcGISPortalExtensions Class
ArcGISPortalExtensions Members