The default view of the portal is dependent on the culture of the user which is obtained from the users profile.
You may get the current portal info by the ArcGISPortal.GetPortalInfoAsync (extension) method.
//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();
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, Windows 8.1