Freigeben über


TaskbarManager.RequestPinCurrentAppAsync Methode

Definition

Fordert an, dass die derzeit aktive Anwendung an die Taskleiste angeheftet wird.

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)

Gibt zurück

Ein boolescher Wert, der angibt, ob die Anwendung erfolgreich an die Takbar angeheftet wurde. Wenn die App bereits angeheftet wurde, wird sofort true zurückgegeben.

Attribute

Hinweise

Beim Aufrufen dieser Methode wird ein Dialogfeld angezeigt, in dem der Benutzer aufgefordert wird, zu bestätigen, dass er die App anheften möchte. Wenn der Benutzer "nein" auswählt, gibt diese Methode false zurück.

Gilt für: