TaskbarManager.RequestPinCurrentAppAsync Method

Definition

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

public:
 virtual IAsyncOperation<bool> ^ RequestPinCurrentAppAsync() = RequestPinCurrentAppAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> RequestPinCurrentAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> RequestPinCurrentAppAsync();
function requestPinCurrentAppAsync()
Public Function RequestPinCurrentAppAsync () As IAsyncOperation(Of Boolean)

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