Method SaveAsAsync
SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, RuntimeImage)
Save the FeatureCollection to a new PortalItem.
Declaration
public Task<PortalItem> SaveAsAsync(ArcGISPortal portal, PortalFolder folder, string title, string description, IEnumerable<string> tags, RuntimeImage thumbnailImage = null)
Parameters
Type | Name | Description |
---|---|---|
Arc |
portal | The portal to save the map to |
Portal |
folder | The portal folder in which to save the map. If |
System. |
title | The title of the map. Cannot be empty |
System. |
description | The description of the map |
System. |
tags | The tags to be associated with the newly created portal item |
Runtime |
thumbnailImage | The thumbnail of the map |
Returns
Type | Description |
---|---|
System. |
The task object representing the asynchronous save as operation. The value of the task result is a Portal |
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.
Exceptions
Type | Condition |
---|---|
System. |
Fails if the portal isn't loaded and associated with a user |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.14 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |
SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, RuntimeImage, CancellationToken)
Save the FeatureCollection to a new PortalItem.
Declaration
public async Task<PortalItem> SaveAsAsync(ArcGISPortal portal, PortalFolder folder, string title, string description, IEnumerable<string> tags, RuntimeImage thumbnailImage, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Arc |
portal | The portal to save the map to |
Portal |
folder | The portal folder in which to save the map. If |
System. |
title | The title of the map. Cannot be empty |
System. |
description | The description of the map |
System. |
tags | The tags to be associated with the newly created portal item |
Runtime |
thumbnailImage | The thumbnail of the map |
System. |
cancellationToken | A System. |
Returns
Type | Description |
---|---|
System. |
The task object representing the asynchronous save as operation. The value of the task result is a Portal |
Remarks
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.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.14 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |