public enum ItemFactory.ItemType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum ItemFactory.ItemType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum ItemFactory.ItemType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum ItemFactory.ItemType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
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. |
// Creates an Item from an existing portal item base on its ID string portalItemID = "9801f878ff4a22738dff3f039c43e395"; Item portalItem = ItemFactory.Instance.Create(portalItemID, ItemFactory.ItemType.PortalItem);
// Creates an Item from an existing portal folder base on its ID string portalFolderID = "39c43e39f878f4a2279838dfff3f0015"; Item portalFolder = ItemFactory.Instance.Create(portalFolderID, ItemFactory.ItemType.PortalFolderItem);
System.Object
System.ValueType
System.Enum
ArcGIS.Desktop.Core.ItemFactory.ItemType
Target Platforms: Windows 11, Windows 10