Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.61 KB

taskbarmanager_requestpinsecondarytileasync_1888872913.md

File metadata and controls

38 lines (23 loc) · 1.61 KB
-api-id -api-type ms.custom
M:Windows.UI.Shell.TaskbarManager.RequestPinSecondaryTileAsync(Windows.UI.StartScreen.SecondaryTile)
winrt method
RS5

Windows.UI.Shell.TaskbarManager.RequestPinSecondaryTileAsync

-description

Requests to pin the specified tile to taskbar. Requires user approval as described here.

Important

The TaskbarManager.RequestPinSecondaryTileAsync API is part of a Limited Access Feature (see LimitedAccessFeatures class). For more information or to request an unlock token, please use the LAF Access Token Request Form.

-parameters

-param secondaryTile

The secondary tile to be pinned.

-returns

A boolean representing whether the tile is pinned to the takbar. If the tile was already pinned, this will update the tile and return true. If pinning wasn't allowed or taskbar isn't supported, this will return false.

-remarks

This API can only be used with user approval, as described here. See the docs for pinning secondary tiles to taskbar to learn more.

-see-also

Pin your app to the taskbar, Pin secondary tiles to taskbar

-examples