SecondaryTile.UpdateAsync SecondaryTile.UpdateAsync SecondaryTile.UpdateAsync SecondaryTile.UpdateAsync 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 : IAsyncOperation<Platform::Boolean> UpdateAsync()
IAsyncOperation<bool> UpdateAsync() const;
public IAsyncOperation<bool> UpdateAsync()
Public Function UpdateAsync() As IAsyncOperation(Of bool)
Windows.UI.StartScreen.SecondaryTile.updateAsync().done( /* Your success and error handlers */ );

Returns

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

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.