Share via


TaskbarManager.RequestPinAppListEntryAsync(AppListEntry) Method

Definition

Requests that the specified application be pinned to the taskbar.

public:
 virtual IAsyncOperation<bool> ^ RequestPinAppListEntryAsync(AppListEntry ^ appListEntry) = RequestPinAppListEntryAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> RequestPinAppListEntryAsync(AppListEntry const& appListEntry);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> RequestPinAppListEntryAsync(AppListEntry appListEntry);
function requestPinAppListEntryAsync(appListEntry)
Public Function RequestPinAppListEntryAsync (appListEntry As AppListEntry) As IAsyncOperation(Of Boolean)

Parameters

appListEntry
AppListEntry

An AppListEntry corresponding to the application to pin to the taskbar.

Returns

A boolean representing whether the application was successfully pinned to the takbar. If the app was already pinned, this will immediately return true.

Attributes

Remarks

Calling this method will display a dialog asking the user to confirm that they want to pin the app. If the user selects "no", this method will return false.

Applies to