TaskbarManager TaskbarManager TaskbarManager TaskbarManager TaskbarManager Class

Definition

Provides methods for pinning applications to the taskbar.

public : sealed class TaskbarManager
struct winrt::Windows::UI::Shell::TaskbarManager
public sealed class TaskbarManager
Public NotInheritable Class TaskbarManager
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

Version history

Windows version SDK version Value added
1809 17763 IsSecondaryTilePinnedAsync
1809 17763 RequestPinSecondaryTileAsync
1809 17763 TryUnpinSecondaryTileAsync

Properties

IsPinningAllowed IsPinningAllowed IsPinningAllowed IsPinningAllowed IsPinningAllowed

Gets whether pinning to the taskbar is allowed.

IsSupported IsSupported IsSupported IsSupported IsSupported

Gets whether the taskbar is present on the current device.

Methods

GetDefault() GetDefault() GetDefault() GetDefault() GetDefault()

Returns the TaskbarManager object active in the current process.

IsAppListEntryPinnedAsync(AppListEntry) IsAppListEntryPinnedAsync(AppListEntry) IsAppListEntryPinnedAsync(AppListEntry) IsAppListEntryPinnedAsync(AppListEntry) IsAppListEntryPinnedAsync(AppListEntry)

Checks if the specified application is already pinned to the taskbar.

IsCurrentAppPinnedAsync() IsCurrentAppPinnedAsync() IsCurrentAppPinnedAsync() IsCurrentAppPinnedAsync() IsCurrentAppPinnedAsync()

Checks if the currently active application is already pinned to the taskbar.

IsSecondaryTilePinnedAsync(String) IsSecondaryTilePinnedAsync(String) IsSecondaryTilePinnedAsync(String) IsSecondaryTilePinnedAsync(String) IsSecondaryTilePinnedAsync(String)

Checks if the specified secondary tile is pinned to taskbar. Requires user approval as described here

RequestPinAppListEntryAsync(AppListEntry) RequestPinAppListEntryAsync(AppListEntry) RequestPinAppListEntryAsync(AppListEntry) RequestPinAppListEntryAsync(AppListEntry) RequestPinAppListEntryAsync(AppListEntry)

Requests that the specified application be pinned to the taskbar.

RequestPinCurrentAppAsync() RequestPinCurrentAppAsync() RequestPinCurrentAppAsync() RequestPinCurrentAppAsync() RequestPinCurrentAppAsync()

Requests that the currently active application be pinned to the taskbar.

RequestPinSecondaryTileAsync(SecondaryTile) RequestPinSecondaryTileAsync(SecondaryTile) RequestPinSecondaryTileAsync(SecondaryTile) RequestPinSecondaryTileAsync(SecondaryTile) RequestPinSecondaryTileAsync(SecondaryTile)

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

Important

Limited Access API: This API is a limited access feature. To use this API, please contact taskbarsecondarytile@microsoft.com.

TryUnpinSecondaryTileAsync(String) TryUnpinSecondaryTileAsync(String) TryUnpinSecondaryTileAsync(String) TryUnpinSecondaryTileAsync(String) TryUnpinSecondaryTileAsync(String)

Tries to unpin the secondary tile from taskbar. Requires user approval as described here

See also