TaskbarManager Class

Definition

Provides methods for pinning applications to the taskbar.

public ref class TaskbarManager sealed
class TaskbarManager sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.Shell.ITaskbarManagerStatics), 327680, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TaskbarManager
Public NotInheritable Class TaskbarManager
Inheritance
TaskbarManager
Attributes

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

Version history

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

Properties

IsPinningAllowed

Gets whether pinning to the taskbar is allowed.

IsSupported

Gets whether the taskbar is present on the current device.

Methods

GetDefault()

Returns the TaskbarManager object active in the current process.

IsAppListEntryPinnedAsync(AppListEntry)

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

IsCurrentAppPinnedAsync()

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

IsSecondaryTilePinnedAsync(String)

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

RequestPinAppListEntryAsync(AppListEntry)

Requests that the specified application be pinned to the taskbar.

RequestPinCurrentAppAsync()

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

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)

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

Applies to

See also