Click or drag to resize

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

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,
	Uri thumbnailUri
)

Parameters

portal
Type: Esri.ArcGISRuntime.PortalArcGISPortal
Portal to save to
folder
Type: Esri.ArcGISRuntime.PortalPortalFolder
Folder to save in
title
Type: SystemString
Title of the item
description
Type: SystemString
Description of the item
tags
Type: System.Collections.GenericIEnumerableString
Tags
thumbnailUri
Type: SystemUri
A uri to the thumbnail for the item

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