Method SaveAsAsync
SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, Nullable<Uri>)
Save the FeatureCollection to a new PortalItem.
Declaration
public Task<PortalItem> SaveAsAsync(ArcGISPortal portal, PortalFolder folder, string title, string description, IEnumerable<string> tags, Uri? thumbnailUri)
Parameters
| Type | Name | Description |
|---|---|---|
| ArcGISPortal | portal | Portal to save to |
| PortalFolder | folder | Folder to save in |
| String | title | Title of the item |
| String | description | Description of the item |
| IEnumerable<String> | tags | Tags |
| System.Nullable<Uri> | thumbnailUri | A uri to the thumbnail for the item |
Returns
| Type | Description |
|---|---|
| Task<PortalItem> | The task object representing the asynchronous save as operation. The value of the task result is a PortalItem object. |
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.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |
SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, Nullable<Uri>, 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, Uri? thumbnailUri, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| ArcGISPortal | portal | Portal to save to |
| PortalFolder | folder | Folder to save in |
| String | title | Title of the item |
| String | description | Description of the item |
| IEnumerable<String> | tags | Tags |
| System.Nullable<Uri> | thumbnailUri | A uri to the thumbnail for the item |
| CancellationToken | cancellationToken | Token for canceling the operation. |
Returns
| Type | Description |
|---|---|
| Task<PortalItem> | The task object representing the asynchronous save as operation. The value of the task result is a PortalItem object. |
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.
This method is obsolete since 100.1. Use SaveAsAsync method taking RuntimeImage thumbnail instead.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |
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 |
|---|---|---|
| ArcGISPortal | portal | The portal to save the map to |
| PortalFolder | folder | The portal folder in which to save the map. If |
| String | title | The title of the map. Cannot be empty |
| String | description | The description of the map |
| IEnumerable<String> | tags | The tags to be associated with the newly created portal item |
| RuntimeImage | thumbnailImage | The thumbnail of the map |
Returns
| Type | Description |
|---|---|
| Task<PortalItem> | The task object representing the asynchronous save as operation. The value of the task result is a PortalItem object. |
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.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |
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 |
|---|---|---|
| ArcGISPortal | portal | The portal to save the map to |
| PortalFolder | folder | The portal folder in which to save the map. If |
| String | title | The title of the map. Cannot be empty |
| String | description | The description of the map |
| IEnumerable<String> | tags | The tags to be associated with the newly created portal item |
| RuntimeImage | thumbnailImage | The thumbnail of the map |
| CancellationToken | cancellationToken | A |
Returns
| Type | Description |
|---|---|
| Task<PortalItem> | The task object representing the asynchronous save as operation. The value of the task result is a PortalItem object. |
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.
This method is obsolete since 100.1. Use SaveAsAsync method taking RuntimeImage thumbnail instead.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |