var portal = new ArcGISPortal(new Uri("https://www.arcgis.com")); var itemType = "Feature Service"; var itemProperties = new Dictionary{ {"name", "New Feature Service"}, {"description", "This is a new feature service created with ArcGISPortal"} }; var serviceProperties = new Dictionary { {"serviceType", "featureService"}, {"capabilities", "Query,Create,Update,Delete,Uploads"} }; var item = await portal.CreateAsync(itemType, itemProperties, serviceProperties);
var portal = new ArcGISPortal(new Uri("https://www.arcgis.com")); var itemType = "Web Map"; var itemProperties = new Dictionary{ {"name", "New Web Map"}, {"description", "This is a new web map created with ArcGISPortal"} }; var mapProperties = new Dictionary { {"operationalLayers", new List