TaskbarManager.RequestPinCurrentAppAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor