PinnedContactManager.RequestPinContactAsync 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.
Pins a contact to the taskbar or Start menu.
public:
virtual IAsyncOperation<bool> ^ RequestPinContactAsync(Contact ^ contact, PinnedContactSurface surface) = RequestPinContactAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> RequestPinContactAsync(Contact const& contact, PinnedContactSurface const& surface);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> RequestPinContactAsync(Contact contact, PinnedContactSurface surface);
function requestPinContactAsync(contact, surface)
Public Function RequestPinContactAsync (contact As Contact, surface As PinnedContactSurface) As IAsyncOperation(Of Boolean)
Parameters
- contact
- Contact
The contact to pin to the taskbar or Start menu.
- surface
- PinnedContactSurface
A pinnedContactSurface value that specifies where in the Windows UI you would like to pin the contact.
Returns
An asynchronous operation that returns a Boolean value that indicates whether the contact was successfully pinned to the specified location.
- Attributes
Windows requirements
App capabilities |
contactsSystem
|
Remarks
This method must be called from the main UI thread.