Share via


PinnedContactManager 類別

定義

代表來源應用程式可以從工作列或 [ 開始 ] 功能表呼叫來釘選和取消釘選連絡人的服務。

在傳統型應用程式中,在以顯示 UI 的方式使用這個類別的實例之前,您必須將物件與其擁有者的視窗控制碼產生關聯。 如需詳細資訊和程式碼範例,請參閱 顯示相依于 CoreWindow 的 WinRT UI 物件

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
繼承
Object Platform::Object IInspectable PinnedContactManager
屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
應用程式功能
contactsSystem

屬性

User

取得與PinnedContactManager相關聯的使用者

方法

GetDefault()

取得 PinnedContactManager的預設實例。

在傳統型應用程式中,在以顯示 UI 的方式使用這個類別的實例之前,您必須將物件與其擁有者的視窗控制碼產生關聯。 如需詳細資訊和程式碼範例,請參閱 顯示相依于 CoreWindow 的 WinRT UI 物件

GetForUser(User)

取得指定使用者的 PinnedContactManager

GetPinnedContactIdsAsync()

取得釘選到工作列或 [開始 ] 功能表之所有連絡人的識別碼。

IsContactPinned(Contact, PinnedContactSurface)

指出指定的連絡人是否釘選到 Windows 使用者介面中的指定位置。

IsPinSurfaceSupported(PinnedContactSurface)

指出 Windows UI 中指定的位置是否支援連絡人釘選。

IsSupported()

指出 Windows UI 是否支援連絡人釘選。

RequestPinContactAsync(Contact, PinnedContactSurface)

將連絡人釘選到工作列或 [開始] 功能表。

RequestPinContactsAsync(IIterable<Contact>, PinnedContactSurface)

將連絡人集合釘選到工作列或 [開始] 功能表。

RequestUnpinContactAsync(Contact, PinnedContactSurface)

從工作列或 [ 開始 ] 功能表取消釘選連絡人。

SignalContactActivity(Contact)

當活動與釘選的連絡人相關時,會向 Windows 指出。

適用於