Share via


PinnedContactManager Class

Definition

Represents a service that source apps can call to pin and unpin contacts to and from the taskbar or Start menu.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

public ref class PinnedContactManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PinnedContactManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PinnedContactManager
Public NotInheritable Class PinnedContactManager
Inheritance
Object Platform::Object IInspectable PinnedContactManager
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
contactsSystem

Properties

User

Gets the User associated with the PinnedContactManager.

Methods

GetDefault()

Gets the default instance of a PinnedContactManager.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

GetForUser(User)

Gets a PinnedContactManager for the specified user.

GetPinnedContactIdsAsync()

Gets the ID's of all contacts that are pinned to the taskbar or Start menu.

IsContactPinned(Contact, PinnedContactSurface)

Indicates whether the specified contact is pinned to the specified location in the Windows user interface.

IsPinSurfaceSupported(PinnedContactSurface)

Indicates whether the specified location in the Windows UI supports contact pinning.

IsSupported()

Indicates whether the Windows UI supports contact pinning.

RequestPinContactAsync(Contact, PinnedContactSurface)

Pins a contact to the taskbar or Start menu.

RequestPinContactsAsync(IIterable<Contact>, PinnedContactSurface)

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

RequestUnpinContactAsync(Contact, PinnedContactSurface)

Unpins a contact from the taskbar or Start menu.

SignalContactActivity(Contact)

Indicates to Windows when activity that is related to a pinned contact occurs.

Applies to