ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core.Portal Namespace / PortalInfo Class / PortalThumbnailUri Property
Example

In This Topic
    PortalThumbnailUri Property
    In This Topic
    Gets the URI of the portal thumbnail.
    Syntax
    public Uri PortalThumbnailUri {get;}
    Public ReadOnly Property PortalThumbnailUri As Uri
    Remarks
    The portal uri does NOT include a token. If a token is required that should be added. The PortalThumbnailUri can be null.
    Example
    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;
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also