Method UpdateItemPropertiesAsync
UpdateItemPropertiesAsync()
Executes an asynchronous operation to update any item properties that have been changed.
Declaration
public Task UpdateItemPropertiesAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous update operation. |
Remarks
This method causes the values that have been changed to be updated on the portal (for PortalItem) or on disk (for LocalItem).
For PortalItem, this method updates the item's properties on the portal asynchronously. This update item operation allows users to update item information without changing the item content. Users can use this operation to update item information such as the title, description, tags, thumbnail, etc. This call is available to the item owner and the administrator of the organization.
For LocalItem, this method updates the item's properties in a file on disk where applicable. Updating properties can be only done for local items that are unpacked. For example a mobile map package file (.mmpk) can be unpacked using UnpackAsync(String, String). Once unpacked, local items within the package can be updated see Item and for any maps use Item. As well as packages, the local item available from an ItemResourceCache can be updated. This is accessed with Item. If the package is not unpacked an exception is thrown by the async task.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.4 - 200.5 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.5 |
UpdateItemPropertiesAsync(CancellationToken)
Executes an asynchronous operation to update any item properties that have been changed.
Declaration
public async Task UpdateItemPropertiesAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken with which to cancel the operation if required. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous update operation. |
Remarks
This method causes the values that have been changed to be updated on the portal (for PortalItem) or on disk (for LocalItem).
For PortalItem, this method updates the item's properties on the portal asynchronously. This update item operation allows users to update item information without changing the item content. Users can use this operation to update item information such as the title, description, tags, thumbnail, etc. This call is available to the item owner and the administrator of the organization.
For LocalItem, this method updates the item's properties in a file on disk where applicable. Updating properties can be only done for local items that are unpacked. For example a mobile map package file (.mmpk) can be unpacked using UnpackAsync(String, String). Once unpacked, local items within the package can be updated see Item and for any maps use Item. As well as packages, the local item available from an ItemResourceCache can be updated. This is accessed with Item. If the package is not unpacked an exception is thrown by the async task.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.4 - 200.5 |
Xamarin.Android | 100.4 - 100.14 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.5 |