ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core Namespace / ItemFactory.ItemType Enumeration
Example Example

In This Topic
    ItemFactory.ItemType Enumeration
    In This Topic
    Specifies the type of item that will be created using ItemFactory.Create, then added or imported to the project
    Syntax
    Members
    MemberDescription
    CloudItem An item will be created to reference an item available on a cloud hosted service. For example, when the provided URL identifies a BIM or CAD file on Autodesk BIM 360 Docs, it can be downloaded and added to a map or scene in your project.
    PathItem A project item will be created and added to the current project in a manner that is appropriate for the identified resource. For example, a map file identified by a file path will be imported and a new MapProjectItem will be added to the project. If the path identifies a locator, a new locator connection will be added to the project.
    PortalFolderItem An item will be created to reference a folder of resources that is available from the active portal. For example, when the provided URL identifies a folder in My Content, you can use browse the returned item's content and identify the web map you want to add to your project.
    PortalItem A portal item will be created to reference an item available from the active portal. For example, when the provided URL identifies a feature layer or scene layer, you can add that portal item to a map or scene in your project. If the URL identifies a map package, it can be downloaded and added to the project.
    Example
    Create A PortalItem
    // Creates an Item from an existing portal item base on its ID
    string portalItemID = "9801f878ff4a22738dff3f039c43e395";
    Item portalItem = ItemFactory.Instance.Create(portalItemID, ItemFactory.ItemType.PortalItem);
    
    Create A PortalFolder
    // Creates an Item from an existing portal folder base on its ID
    string portalFolderID = "39c43e39f878f4a2279838dfff3f0015";
    Item portalFolder = ItemFactory.Instance.Create(portalFolderID, ItemFactory.ItemType.PortalFolderItem);
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Core.ItemFactory.ItemType

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also