Click or drag to resize

PortalItemType Enumeration

An enumeration of various types of portal items.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public enum PortalItemType
Members
  Member nameValueDescription
Unknown-1An unknown portal item type
ArcGISProAddIn0Pro Add In (esriaddinx)
ArcPadPackage1ArcPad Package (zip)
CADDrawing2A Computer-Aided Design drawing comprised of a single file.
CSV3 A text file of data values separated by commas or other delimiters. Can be published as a feature service using the Portal API Publish call.
CityEngineWebScene4A city engine web scene.
CodeAttachment5The sample code associated with an application whose purpose is code sample.
CodeSample6A code sample.
ColorSet7A color set.
DesktopAddIn8ArcGIS Add-In (esriaddin)
DesktopApplication9Desktop Application (zip)
DesktopApplicationTemplate10The Desktop Application Template (zip) includes either a desktop add in or a toolbar.exe.
DesktopStyle11ArcGIS Pro Style file (stylx)
DocumentLink12Link to a web resource
ExplorerAddIn13ArcGIS Explorer Layer (eaz)
ExplorerLayer14ArcGIS Explorer Layer (nmc)
ExplorerMap15ArcGIS Explorer Document (nmf)
FeatureCollection16 A feature collection is a saved web map feature layer with layer definition (types, symbols, fields, and so on) and a feature set (the actual features).
FeatureCollectionTemplate17A feature collection that includes the layer definition component.
FeatureService18 A feature service. The URL to the service is stored in the ServiceUrl property of the item. Optional JSON data contains overridden service properties.
FileGeodatabase19File Geodatabase.
Form20Form authored using Survey123.
GeocodingService21 ArcGIS Server Geocoding Service. The URL to the service is stored in the ServiceUrl property of the item.
GeodataService22 ArcGIS Server Geodata Service. The URL to the service is stored in the ServiceUrl property of the item.
GeometryService23 ArcGIS Server Geometry Service The URL to the service is stored in the ServiceUrl property of the item.
GeoprocessingPackage24ArcGIS Geoprocessing Package (gpk)
GeoprocessingPackageProVersion25ArcGIS Pro Geoprocessing Package (gpkx)
GeoprocessingSample26Geoprocessing Sample.
GeoprocessingService27 ArcGIS Server Geoprocessing Service. The URL to the service is stored in the ServiceUrl property of the item.
GlobeDocument28ArcGlobe Document (3dd)
GlobeService29 ArcGIS Server Globe Service. The URL to the service is stored in the ServiceUrl property of the item.
Image30Image Types (.jpg, .jpeg, .tif, .tiff, .png)
ImageCollection31 A portable file that contains one or more images that can be published as an image service for imagery visualization and analysis.
ImageService32 An image service. The URL to the service is stored in the ServiceUrl property of the item Optional JSON data contains overridden service properties.
InsightsModel33 Insights model records analysis steps on an insights pages, including adding and joining datasets, spatial analysis, data analytics and styling.
InsightsPage34 Insights Page resides in Insights Workbook, used to connect the data and analyze related content and themes with interactive visualization.
InsightsWorkbook35 Insights Workbook collects or associates all data and analytical activity for a project, capturing and maintaining relationships such as data locations and storing result layers, models, pages and cards.
IWorkKeynote36iWork Keynote file (.key)
IWorkNumbers37iWork Numbers file (.numbers)
IWorkPages38iWork Pages file (.pages)
KML39 KML/KMZ file or link to a KML/KMZ file. If the item is a link, the ServiceUrl contains the URL.
KMLCollection40A zip file containing a collection of KML/KMZ files.
Layer41Layer File (lyr) or ArcGIS Pro layer file (lyrx).
LayerPackage42Layer Package (lpk)
Layout43ArcGIS Pro Layout File (pagx)
LocatorPackage44ArcGIS Locator Package (gcpk)
MapDocument45ArcMap Document (mxd)
MapPackage46ArcGIS Map Package (mpk)
MapService47 A map service. The URL to the service is stored in the ServiceUrl property of the item. Optional JSON data contains overridden service properties.
MapTemplate48The Map Template (.zip) contains documentation, a map, and GDB folder.
MicrosoftExcel49Microsoft Excel Document (.xls, .xlsx)
MicrosoftPowerpoint50Microsoft Powerpoint (.ppt, .pptx)
MicrosoftWord51Microsoft Word Document (.doc, .docx)
MobileApplication52 A mobile application. The URL to the application in the app store is stored in the ServiceUrl property of the item.
MobileBasemapPackage53ArcGIS Mobile Basemap Package (.bpk)
MobileMapPackage54ArcGIS Mobile Map Package (mmpk)
NativeApplication55Native Application for AppStudio for ArcGIS.
NativeApplicationInstaller56Native Application Installer for AppStudio for ArcGIS.
NativeApplicationTemplate57Native Application Template for AppStudio for ArcGIS.
NetCDF58 Self-describing, portable and scalable file format for storing multidimensional scientific data usable by GeoAnalytics tools.
NetworkAnalysisService59 ArcGIS Server Network Analyst Service. The URL to the service is stored in the ServiceUrl property of the item.
OperationView60An operation view.
OperationsDashboardAddIn61ArcGIS Operations Dashboard Add In (opdashboardaddin)
OperationsDashboardExtension62ArcGIS Operations Dashboard Extension.
PDF63Portable Document Format (.pdf)
ProjectPackage64ArcGIS Project Package (ppkx)
ProjectTemplate65ArcGIS Project Template (aptx)
ProMap66ArcGIS Pro map file (mapx)
PublishedMap67ArcReader Document (pmf)
RasterFunctionTemplate68ArcGIS Pro raster function template
RelationalDatabaseConnection69 ArcGIS server relational catalog service. Item represents a connection to a database for the purpose of viewing, querying and analyzing its contents.
ReportTemplate70Report template used by the geoenrichment service and Business Analyst applications to generate custom reports.
RulePackage71ArcGIS Rule Package (lpk)
SceneDocument72ArcScene Document (sxd)
ScenePackage73Scene Layer Package (spk or slpk)
SceneService74Cached web layers that are optimized for displaying a large amount of 2D or 3D features.
ServiceDefinition75A Service Definition that can be published to create a geo spatial web service using the Portal API Publish call.
ShapeFile76A shape file.
StatisticalDataCollection77 Data collection used by the geoenrichment service and Business Analyst applications to perform data aggregation with statistical feature data.
SymbolSet78A symbol set.
TaskFile79ArcGIS Task File (esriTasks)
TilePackage80Tile Package (tpk)
VectorTilePackage81Vector Tile Package (.vtpk)
VectorTileService82 A Vector Tile Service. The URL to the service ( example ) is stored in the ServiceUrl property of the item.
VisioDocument83Visio Document (.vsd)
Vr360Experience84 A 360-degrees virtual reality experience that lets you explore a set of connected geo-located panoramic 3D visualizations or photos.
WFS85 OGC Web Feature Service. The URL of the service is stored in the ServiceUrl property of the item.
WMS86 OGC Web Map Service. The URL to the service is stored in the ServiceUrl property of the item.
WMTS87A WMTS Service.
WebMap88A Web map.
WebMappingApplication89A web mapping application.
WebScene90Web scene.
WindowsMobilePackage91A windows mobile package.
WorkflowManagerPackage92Workflow Manager Package (wpk)
WorkflowManagerService93ArcGIS Server Workflow Manager Service.
WorkforceProject94Workforce Project
SQLiteGeodatabase95A runtime sqlite geodatabase.
MapArea96A map area defining a preplanned offline map.
HubInitiative97Initiatives organize data and tools with an organization goal.
HubSiteApplication98A customizable website that provides a focused view of an organization's items.
HubPage99Hub pages provide web site pages to market Hub Initiatives and provide chart and app content.
AppBuilderExtension100 AppBuilder Extension for Web AppBuilder for ArcGIS. URL that references custom widgets for use in Web AppBuilder apps within Portal.
AppBuilderWidgetPackage101 AppBuilder Widget Package for Web AppBuilder for ArcGIS. Custom widget in a zip file that can be downloaded for use in Web AppBuilder Developer Edition or Portal for ArcGIS 10.5.1 or above.
Dashboard102 Dashboards integrate maps, lists, charts, and gauges that help monitoring and managing daily operations.
ArcGISProConfiguration103 A customization of Pro to include a custom splash screen and startup page as well as tools, dock panes, and menus.
ContentCategorySet104 Content category set is used as templates for creating the category set for an organization or a group.
InsightsTheme105 Insights Theme is a collection of properties set on cards and pages in an Insights Workbook.
MobileScenePackage106 Mobile Scene Package (mspk).
OrientedImageryCatalog107 A collection of images stored as a catalog where data is added with specific parameters and auxiliary information to allow exploring non-nadir imagery on map and see the camera's field of view dynamically.
OrthoMappingProject108 Ortho mapping project.
OrthoMappingTemplate109 Ortho mapping template.
Solution110 A solution is comprised of one or more related items and groups that work together as part of a workflow. It can be deployed to create a new copy of all the items and groups that make up the solution.
BuildingSceneLayer111 Building scene layers allow users to visualize and query building information.
CompactTilePackage112 A tile package (.tpk or .tpkx) allows you to create a set of tiles (images) from a map, Raster or mosaic dataset, then use the set of tiles as a basemap in ArcGIS applications.
DataStore113 For a given geodatabase or file share datastore, the datastore will be registered with Enterprise and will control who can see the datastore itself, enumerate datasets in it, and publish feature layers from it.
DeepLearningPackage114 Deep Learning model package (dlpk).
ExcaliburImageryProject115 A collection of portal items that provides a focused user experience when working with imagery to accomplish an image- based workflows as handled by the ArcGIS Excalibur web app.
GeoPackage116 A GeoPackage is SQLite based containing both vector geospatial features and/or tile matrix sets.
Mission117 A collection of portal items that provides a focused user experience when working in this new product offering for mission focused, situational awareness.
SiteApplication118 The ArcGIS Enterprise Sites application creates this item. When viewed, users are able to interact with an Enterprise Site.
SitePage119 The ArcGIS Enterprise Sites application creates this item. When viewed, users are able to interact with a page.
BigDataAnalytic120 A component used by the ArcGIS Analytics for IoT application for processing high volumes of data.
Feed121 A component used by the ArcGIS Analytics for IoT application for bringing in a real-time data feed. Behaves like a stream layer when added to a map.
RealTimeAnalytic122 A component used by the ArcGIS Analytics for IoT application for processing real-time data. Includes references to data feeds, analytic operations, and destinations (outputs) where the results should be sent.
ProReport123 ArcGIS Pro Report File (rptx).
QuickCaptureProject124 A project created by the QuickCapture Designer tool for use by the the QuickCapture mobile app.
Survey123AddIn125 Survey123 Add-Ins are created and published via Survey123 Connect and are downloaded and used by the Survey123 field app.
UrbanModel126 Contains all information needed to start up an Urban App including links to the Urban database services.
WebExperience127 An experience item created from Experience Builder for ArcGIS.
Examples

Android

Example Name: FeatureCollectionLayerFromPortal

This sample demonstrates opening a feature collection saved as a portal item.

Code example screen shot.

C#
// Copyright 2018 Esri.
// 
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
// language governing permissions and limitations under the License.

using Android.App;
using Android.OS;
using Android.Widget;
using Esri.ArcGISRuntime.Data;
using Esri.ArcGISRuntime.Mapping;
using Esri.ArcGISRuntime.Portal;
using Esri.ArcGISRuntime.UI.Controls;
using System;

namespace ArcGISRuntime.Samples.FeatureCollectionLayerFromPortal
{
    [Activity (ConfigurationChanges=Android.Content.PM.ConfigChanges.Orientation | Android.Content.PM.ConfigChanges.ScreenSize)]
    [ArcGISRuntime.Samples.Shared.Attributes.Sample(
        "Create a feature collection layer from a portal item",
        "Layers",
        "This sample demonstrates opening a feature collection saved as a portal item.",
        "")]
    public class FeatureCollectionLayerFromPortal : Activity
    {
        // Hold a reference to the map view.
        private MapView _myMapView;

        // Store a text box control with a portal item Id.
        private EditText _portalItemIdEditText;

        // Default portal item Id to load features from.
        private const string FeatureCollectionItemId = "32798dfad17942858d5eef82ee802f0b";

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Title = "Create a feature collection layer from a portal item";

            // Create the UI.
            CreateLayout();

            // Initialize the app.
            Initialize();
        }

        private void Initialize()
        {
            // Add a default value for the portal item Id.
            _portalItemIdEditText.Text = FeatureCollectionItemId;

            // Create a new map with the oceans basemap and add it to the map view.
            _myMapView.Map = new Map(Basemap.CreateOceans());
        }

        private async void OpenFeaturesFromArcGISOnline(string itemId)
        {
            try
            {
                // Open a portal item containing a feature collection.
                ArcGISPortal portal = await ArcGISPortal.CreateAsync();
                PortalItem collectionItem = await PortalItem.CreateAsync(portal, itemId);

                // Verify that the item is a feature collection.
                if (collectionItem.Type == PortalItemType.FeatureCollection)
                {
                    // Create a new FeatureCollection from the item.
                    FeatureCollection featureCollection = new FeatureCollection(collectionItem);

                    // Create a layer to display the collection and add it to the map as an operational layer.
                    FeatureCollectionLayer featureCollectionLayer = new FeatureCollectionLayer(featureCollection)
                    {
                        Name = collectionItem.Title
                    };

                    _myMapView.Map.OperationalLayers.Add(featureCollectionLayer);
                }
                else
                {
                    AlertDialog.Builder alertBuilder = new AlertDialog.Builder(this);
                    alertBuilder.SetTitle("Feature Collection");
                    alertBuilder.SetMessage("Portal item with ID '" + itemId + "' is not a feature collection.");
                    alertBuilder.Show();
                }
            }
            catch (Exception ex)
            {
                AlertDialog.Builder alertBuilder = new AlertDialog.Builder(this);
                alertBuilder.SetTitle("Error");
                alertBuilder.SetMessage("Unable to open item with ID '" + itemId + "': " + ex.Message);
                alertBuilder.Show();
            }
        }

        private void OpenPortalFeatureCollectionClick(object sender, EventArgs e)
        {
            // Get the portal item Id from the user.
            string collectionItemId = _portalItemIdEditText.Text.Trim();

            // Make sure an Id was entered.
            if (String.IsNullOrEmpty(collectionItemId))
            {
                AlertDialog.Builder alertBuilder = new AlertDialog.Builder(this);
                alertBuilder.SetTitle("Feature Collection ID");
                alertBuilder.SetMessage("Please enter a portal item ID");
                alertBuilder.Show();
                return;
            }

            // Call a function to add the feature collection from the specified portal item.
            OpenFeaturesFromArcGISOnline(collectionItemId);
        }

        private void CreateLayout()
        {
            // Create a new layout.
            LinearLayout layout = new LinearLayout(this) { Orientation = Orientation.Vertical };

            // Create a button to load features from a portal item, add it to the layout.
            Button loadFeaturesButton = new Button(this) { Text = "Load features" };
            loadFeaturesButton.Click += OpenPortalFeatureCollectionClick;
            layout.AddView(loadFeaturesButton);

            // Create an edit text for the user to enter a portal item Id.
            _portalItemIdEditText = new EditText(this)
            {
                Hint = "Portal Item Id"
            };
            layout.AddView(_portalItemIdEditText);

            // Add the map view to the layout.
            _myMapView = new MapView(this);
            layout.AddView(_myMapView);

            // Show the layout in the app.
            SetContentView(layout);
        }
    }
}
Examples

Xamarin Forms Android

Example Name: FeatureCollectionLayerFromPortal

This sample demonstrates opening a feature collection saved as a portal item.

Code example screen shot.

C#
// Copyright 2018 Esri.
// 
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific 
// language governing permissions and limitations under the License.

using Esri.ArcGISRuntime.Data;
using Esri.ArcGISRuntime.Mapping;
using Esri.ArcGISRuntime.Portal;
using System;
using Xamarin.Forms;

namespace ArcGISRuntime.Samples.FeatureCollectionLayerFromPortal
{
    [ArcGISRuntime.Samples.Shared.Attributes.Sample(
        "Create a feature collection layer from a portal item",
        "Layers",
        "This sample demonstrates opening a feature collection saved as a portal item.",
        "")]
    public partial class FeatureCollectionLayerFromPortal : ContentPage
    { 
        // Default portal item Id to load features from.
        private const string FeatureCollectionItemId = "32798dfad17942858d5eef82ee802f0b";

        public FeatureCollectionLayerFromPortal()
        {
            InitializeComponent();

            // call a function to initialize a map to display in the MyMapView control.
            Initialize();
        }

        private void Initialize()
        {
            // Add a default value for the portal item Id.
            CollectionItemIdTextBox.Text = FeatureCollectionItemId;

            // Create a new map with the oceans basemap and add it to the map view.
            Map myMap = new Map(Basemap.CreateOceans());
            MyMapView.Map = myMap;
        }

        private async void OpenFeaturesFromArcGISOnline(string itemId)
        {
            try
            {
                // Open a portal item containing a feature collection.
                ArcGISPortal portal = await ArcGISPortal.CreateAsync();
                PortalItem collectionItem = await PortalItem.CreateAsync(portal, itemId);

                // Verify that the item is a feature collection.
                if (collectionItem.Type == PortalItemType.FeatureCollection)
                {
                    // Create a new FeatureCollection from the item.
                    FeatureCollection featureCollection = new FeatureCollection(collectionItem);

                    // Create a layer to display the collection and add it to the map as an operational layer.
                    FeatureCollectionLayer featureCollectionLayer = new FeatureCollectionLayer(featureCollection)
                    {
                        Name = collectionItem.Title
                    };

                    MyMapView.Map.OperationalLayers.Add(featureCollectionLayer);
                }
                else
                {
                    await Application.Current.MainPage.DisplayAlert("Feature Collection", "Portal item with ID '" + itemId + "' is not a feature collection.", "OK");
                }
            }
            catch (Exception ex)
            {
                await Application.Current.MainPage.DisplayAlert("Error", "Unable to open item with ID '" + itemId + "': " + ex.Message, "OK");
            }
        }

        private async void OpenPortalFeatureCollectionClick(object sender, EventArgs e)
        {
            // Get the portal item Id from the user.
            string collectionItemId = CollectionItemIdTextBox.Text.Trim();

            // Make sure an Id was entered.
            if (String.IsNullOrEmpty(collectionItemId))
            {
                await Application.Current.MainPage.DisplayAlert("Feature Collection ID", "Please enter a portal item ID", "OK");
                return;
            }

            // Call a function to add the feature collection from the specified portal item.
            OpenFeaturesFromArcGISOnline(collectionItemId);
        }
    }
}
XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntime.Samples.FeatureCollectionLayerFromPortal.FeatureCollectionLayerFromPortal">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <esriUI:MapView x:Name="MyMapView"
                        Grid.Row="0"/>
        <Entry x:Name="CollectionItemIdTextBox"
               Placeholder="Portal item Id"
               Grid.Row="1"
               HorizontalOptions="Fill"/>
        <Button Grid.Row="2"
                HorizontalOptions="Fill"
                Text="Open feature collection item"
                Clicked="OpenPortalFeatureCollectionClick"/>
    </Grid>
</ContentPage>
See Also
Additional Examples
Hyperlink to ExampleDescription
FeatureCollectionLayerFromPortalThis sample demonstrates opening a feature collection saved as a portal item.
SearchPortalMapsFind webmap portal items by using a search term.