ContactManagerForUser.ShowFullContactCard 方法

定义

在操作系统中查询用户的联系人,并在完整联系人卡中显示联系人数据。

public:
 virtual void ShowFullContactCard(Contact ^ contact, FullContactCardOptions ^ fullContactCardOptions) = ShowFullContactCard;
void ShowFullContactCard(Contact const& contact, FullContactCardOptions const& fullContactCardOptions);
public void ShowFullContactCard(Contact contact, FullContactCardOptions fullContactCardOptions);
function showFullContactCard(contact, fullContactCardOptions)
Public Sub ShowFullContactCard (contact As Contact, fullContactCardOptions As FullContactCardOptions)

参数

contact
Contact

表示应用要显示其联系人卡的联系人的 对象。联系人必须至少包含“电话”列表中的 ID电子邮件或电话号码,才能查询用户的联系人数据库,以检索要显示的匹配联系人。 ID 具有更高的查询优先级。 如果 ID 匹配,则出于匹配目的,将忽略其余查询参数。 如果 ID 找不到匹配项,则查询将使用其余查询参数。 电子邮件电话 具有同等的匹配优先级。 如果提供了多个电子邮件地址或电话号码或两者,则查询首先执行完全匹配,要求所有查询参数匹配系统联系人记录。 如果这导致没有匹配项,则查询将使用“尽力而为”匹配,其中任何查询参数的匹配就足够了。

如果没有匹配项,则输入触点中的数据将显示在触点卡中。 如果发生匹配,则仅显示系统触点数据,并且输入触点中的数据将被丢弃。

fullContactCardOptions
FullContactCardOptions

指定如何显示完整的联系人卡。

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
contactsSystem

注解

必须从main UI 线程调用此方法。

适用于

另请参阅