Click or drag to resize

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

Save the FeatureCollection to a new PortalItem.

Namespace:  Esri.ArcGISRuntime.Data
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version:
public Task<PortalItem> SaveAsAsync(
	ArcGISPortal portal,
	PortalFolder folder,
	string title,
	string description,
	IEnumerable<string> tags,
	RuntimeImage thumbnailImage,
	CancellationToken cancellationToken


Type: Esri.ArcGISRuntime.PortalArcGISPortal
The portal to save the map to
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.
Type: SystemString
The title of the map. Cannot be empty
Type: SystemString
The description of the map
Type: System.Collections.GenericIEnumerableString
The tags to be associated with the newly created portal item
Type: Esri.ArcGISRuntime.UIRuntimeImage
The thumbnail of the map
Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

Type: TaskPortalItem
The task object representing the asynchronous save as operation. The value of the task result is a PortalItem object.
Asynchronous method to save a FeatureCollection as a new portal item allowing cancellation. 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