SecondaryTile.RequestDeleteAsync SecondaryTile.RequestDeleteAsync SecondaryTile.RequestDeleteAsync SecondaryTile.RequestDeleteAsync SecondaryTile.RequestDeleteAsync Method

Definition

Overloads

RequestDeleteAsync() RequestDeleteAsync() RequestDeleteAsync() RequestDeleteAsync() RequestDeleteAsync()

Displays the Unpin from Start flyout. This flyout lets the user confirm removal of the secondary tile.

RequestDeleteAsync(Point) RequestDeleteAsync(Point) RequestDeleteAsync(Point) RequestDeleteAsync(Point) RequestDeleteAsync(Point)

Displays the Unpin from Start flyout at a specified point. This flyout lets the user confirm removal of the secondary tile.

RequestDeleteAsync() RequestDeleteAsync() RequestDeleteAsync() RequestDeleteAsync() RequestDeleteAsync()

Displays the Unpin from Start flyout. This flyout lets the user confirm removal of the secondary tile.

public : IAsyncOperation<Platform::Boolean> RequestDeleteAsync()
IAsyncOperation<bool> RequestDeleteAsync() const;
public IAsyncOperation<bool> RequestDeleteAsync()
Public Function RequestDeleteAsync() As IAsyncOperation(Of bool)
Windows.UI.StartScreen.SecondaryTile.requestDeleteAsync().done( /* Your success and error handlers */ );

Returns

An object that provides information concerning the asynchronous delete operation.

Examples

The following example demonstrates how to delete (unpin) a secondary tile. Note that this example assumes that the tile exists. To determine whether the tile is pinned before you call RequestDeleteAsync, see the Exists method.


// Specify the tile to be deleted, using the ID that it was given when it was originally created.
var tileToBeDeleted = new Windows.UI.StartScreen.SecondaryTile("SecondaryTile.01");

// Make the delete request.
tileToBeDeleted.requestDeleteAsync().then(function (isDeleted) {
    if (isDeleted) {
        // Secondary tile successfully deleted.
    } else {
        // Secondary tile not deleted.
    }
});

RequestDeleteAsync(Point) RequestDeleteAsync(Point) RequestDeleteAsync(Point) RequestDeleteAsync(Point) RequestDeleteAsync(Point)

Displays the Unpin from Start flyout at a specified point. This flyout lets the user confirm removal of the secondary tile.

public : IAsyncOperation<Platform::Boolean> RequestDeleteAsync(Point invocationPoint)
IAsyncOperation<bool> RequestDeleteAsync(Point invocationPoint) const;
public IAsyncOperation<bool> RequestDeleteAsync(Point invocationPoint)
Public Function RequestDeleteAsync(invocationPoint As Point) As IAsyncOperation(Of bool)
Windows.UI.StartScreen.SecondaryTile.requestDeleteAsync(invocationPoint).done( /* Your success and error handlers */ );

Parameters

invocationPoint
Point Point Point

The point used as the lower-right corner of the Pin to Start flyout.

Returns

An object that provides information concerning the asynchronous delete operation.

Remarks

The only property that must be set on the tile before calling this method is tileId. If tileId is not set, the call to this method raises an exception.

This method returns an asynchronous Boolean value through its IAsyncOperation.getResults method as shown here.

oSecondaryTile.requestCreateAsync( { x:100, y:100 } ).then( function (isDeleted) { } );      
void async showTileCreateRequest( SecondaryTile tile, Point pt)  
{      
    bool isDeleted = await tile.requestCreateAsync( pt );  
}