Share via


PinnedContactManager.RequestUnpinContactAsync Method

Definition

Unpins a contact from the taskbar or Start menu.

public:
 virtual IAsyncOperation<bool> ^ RequestUnpinContactAsync(Contact ^ contact, PinnedContactSurface surface) = RequestUnpinContactAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> RequestUnpinContactAsync(Contact const& contact, PinnedContactSurface const& surface);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> RequestUnpinContactAsync(Contact contact, PinnedContactSurface surface);
function requestUnpinContactAsync(contact, surface)
Public Function RequestUnpinContactAsync (contact As Contact, surface As PinnedContactSurface) As IAsyncOperation(Of Boolean)

Parameters

contact
Contact

The contact to unpin from the taskbar or Start menu.

surface
PinnedContactSurface

A pinnedContactSurface value that specifies from which area in the Windows UI you would like to unpin the contact.

Returns

An asynchronous operation that returns a Boolean value that indicates whether the contact was successfully unpinned from the specified location.

Attributes

Windows requirements

App capabilities
contactsSystem

Remarks

This method must be called from the main UI thread.

Applies to