Udostępnij za pośrednictwem


AggregateContactManager.TryLinkContactsAsync(Contact, Contact) Method

Definition

Asynchronously attempts to link contacts together to make an aggregate contact.

public:
 virtual IAsyncOperation<Contact ^> ^ TryLinkContactsAsync(Contact ^ primaryContact, Contact ^ secondaryContact) = TryLinkContactsAsync;
IAsyncOperation<Contact> TryLinkContactsAsync(Contact const& primaryContact, Contact const& secondaryContact);
public IAsyncOperation<Contact> TryLinkContactsAsync(Contact primaryContact, Contact secondaryContact);
function tryLinkContactsAsync(primaryContact, secondaryContact)
Public Function TryLinkContactsAsync (primaryContact As Contact, secondaryContact As Contact) As IAsyncOperation(Of Contact)

Parameters

primaryContact
Contact

The first contact to link.

secondaryContact
Contact

The second contact to link to the primaryContact.

Returns

The newly created aggregate contact.

Windows requirements

App capabilities
contactsSystem

Remarks

The primaryContact and secondaryContact objects can be any combination of raw and aggregate contacts.

Applies to