Includes information such as the name, logo, featured items and supported protocols (http vs https) for a portal.
Portal: Get the "online" portal view for the current user
//If no-one is signed in, this will be the default view for
//the anonymous user.
var online = ArcGISPortalManager.Current.GetPortal(new Uri("http://www.arcgis.com"));
var portalInfo = await online.GetPortalInfoAsync();
Portal: Get the organization id for the current user
var portal = ArcGISPortalManager.Current.GetPortal(new Uri(portalUri));
var portalInfo = await portal.GetPortalInfoAsync();
var orgid = portalInfo.OrganizationId;
System.Object
ArcGIS.Desktop.Core.Portal.PortalInfo
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.