Click or drag to resize

FeatureCollectionSaveAsAsync Method (ArcGISPortal, PortalFolder, String, String, IEnumerableString, RuntimeImage)

Save the FeatureCollection to a new PortalItem.

Namespace:  Esri.ArcGISRuntime.Data
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.6.0.0
Syntax
C#
public Task<PortalItem> SaveAsAsync(
	ArcGISPortal portal,
	PortalFolder folder,
	string title,
	string description,
	IEnumerable<string> tags,
	RuntimeImage thumbnailImage = null
)

Parameters

portal
Type: Esri.ArcGISRuntime.PortalArcGISPortal
The portal to save the map to
folder
Type: Esri.ArcGISRuntime.PortalPortalFolder
The portal folder in which to save the map. If null is passed it will be saved to the user's root folder.
title
Type: SystemString
The title of the map. Cannot be empty
description
Type: SystemString
The description of the map
tags
Type: System.Collections.GenericIEnumerableString
The tags to be associated with the newly created portal item
thumbnailImage (Optional)
Type: Esri.ArcGISRuntime.UIRuntimeImage
The thumbnail of the map

Return Value

Type: TaskPortalItem
The task object representing the asynchronous save as operation. The value of the task result is a PortalItem object.
Exceptions
ExceptionCondition
InvalidOperationExceptionFails if the portal isn't loaded and associated with a user
Remarks
Asynchronous method to save a FeatureCollection as a new portal item. The FeatureCollection does not need to be associated with an existing PortalItem object. The FeatureCollection must be loaded. The result is a reference to the new PortalItem which the FeatureCollection is now associated with.

Note that if the FeatureCollection was already associated with a PortalItem object (either because the FeatureCollection was created using a PortalItem or was previously saved), that object will be replaced with a new PortalItem, effectively duplicating the FeatureCollection on the portal.

This method is obsolete since 100.1. Use SaveAsAsync method taking RuntimeImage thumbnail instead.
See Also