Dela via


SecondaryTile.UpdateAsync Method

Definition

Updates a secondary tile after that tile is pinned to the Start screen.

On Windows Phone 8.1, your app is suspended and the user is taken to the Start screen when a secondary tile is pinned. Therefore, be aware that any code called after RequestCreateAsync is not guaranteed to be run before the app is suspended. To avoid this potential issue you should use the OnSuspended event of your app to run any code, such as updating the pinned tile, that should be run before the app suspends. To see an example of this pattern, download and run the Tile update on suspend sample.

public:
 virtual IAsyncOperation<bool> ^ UpdateAsync() = UpdateAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> UpdateAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> UpdateAsync();
function updateAsync()
Public Function UpdateAsync () As IAsyncOperation(Of Boolean)

Returns

An object used to launch the asynchronous create operation as well as to retrieve information about it.

Attributes

Remarks

This method updates the following properties of the secondary tile:

On Windows 8 and Windows 8.1, this method doesn't update these properties:

If the TileId property is not set before you call this method, the call will raise an exception.

Applies to