PinnedContactManager.RequestPinContactsAsync Method

Definition

Pins a collection of contacts to the taskbar or Start menu.

C#
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> RequestPinContactsAsync(IEnumerable<Contact> contacts, PinnedContactSurface surface);

Parameters

contacts

IEnumerable<Contact>

The collection of contacts 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 contacts.

Returns

An asynchronous operation that returns a Boolean value that indicates whether the contacts were successfully pinned to the specified location.

Attributes

Windows requirements

App capabilities
contactsSystem

Remarks

This method must be called from the main UI thread.

Applies to

Product Versions
WinRT Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100