ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Core Namespace / CatalogSecondaryPortalContentType Enumeration
Example Example

In This Topic
    CatalogSecondaryPortalContentType Enumeration
    In This Topic
    Specifies the secondary content type for portal content for the Catalog dock pane
    Syntax
    Members
    MemberDescription
    AllContent Show all portal content
    LivingAtlas Show Living Atlas content
    Unknown Unknown content type
    UserContent Show portal user content
    UserFavorites Show portal user favorites
    UserGroups Show portal user groups
    UserOrganization Show portal user organization content
    Example
    Get the secondary portal catalog content
      //Gets the Catalog pane
      var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
      var catContentType = catalogWindow.GetCurrentContentType();
      //Is Portal the content type?
      if (catContentType == CatalogContentType.Portal)
      {
          //check what is the portal content type being shown...
          var secondaryContentType = 
    catalogWindow.GetCurrentSecondaryPortalContentType();
          //TODO use secondary portal content type...
      }
    
    Set the secondary portal catalog content
    //Gets the Catalog pane
    var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
    if (!catalogWindow.IsActiveWindow)
        return; //catalog dockpane must be the active window
    
    var catContentType = catalogWindow.GetCurrentContentType();
    //Is portal content being shown?
    if (catContentType == CatalogContentType.Portal)
    {
        //check what is the portal content type being shown...
        var portalContentType = (int)catalogWindow.GetCurrentSecondaryPortalContentType();
        //advance to the next tab
        portalContentType++;
        if (portalContentType > (int)CatalogSecondaryPortalContentType.LivingAtlas)
            portalContentType = (int)CatalogSecondaryPortalContentType.UserContent;
    
        //set the secondary portal content type
        //Must be on the UI - no QueuedTask!
        catalogWindow.SetSecondaryPortalContentTypeAsync(
            (CatalogSecondaryPortalContentType)portalContentType);
    }
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Core.CatalogSecondaryPortalContentType

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also