Windows Dev Center

SecondaryTile.RequestDeleteAsync(Point) | requestDeleteAsync(Point) method

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

Syntax


secondaryTile.requestDeleteAsync(invocationPoint).done( /* Your success and error handlers */ );

Parameters

invocationPoint

Type: Point

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

Return value

Type: IAsyncOperation<Boolean>

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.


  
[JavaScript]  
oSecondaryTile.requestCreateAsync( { x:100, y:100 } ).then( function (isDeleted) { } );      

[C#]  
void async showTileCreateRequest( SecondaryTile tile, Point pt)  
{      
    bool isDeleted = await tile.requestCreateAsync( pt );  
}

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.StartScreen
Windows::UI::StartScreen [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.StartScreen
Windows::UI::StartScreen [C++]

Metadata

Windows.winmd

See also

SecondaryTile
RequestDeleteAsync
Secondary tiles sample

 

 

Show:
© 2015 Microsoft