PortalInfo portalInfo = await portal.GetPortalInfoAsync(); string thumbnailPath = portalInfo.PortalThumbnailUri?.AbsoluteUri; if (portal.IsSignedOn() && !string.IsNullOrEmpty(thumbnailPath)) { var token = portal.GetToken(); if (!string.IsNullOrEmpty(token)) { thumbnailPath += "?token=" + token; } }
Target Platforms: Windows 11, Windows 10