Udostępnij za pośrednictwem


AggregateContactManager.TrySetPreferredSourceForPictureAsync Method

Definition

Chooses which of the raw contacts provides the main display picture for the aggregate.

public:
 virtual IAsyncOperation<bool> ^ TrySetPreferredSourceForPictureAsync(Contact ^ aggregateContact, Contact ^ rawContact) = TrySetPreferredSourceForPictureAsync;
IAsyncOperation<bool> TrySetPreferredSourceForPictureAsync(Contact const& aggregateContact, Contact const& rawContact);
public IAsyncOperation<bool> TrySetPreferredSourceForPictureAsync(Contact aggregateContact, Contact rawContact);
function trySetPreferredSourceForPictureAsync(aggregateContact, rawContact)
Public Function TrySetPreferredSourceForPictureAsync (aggregateContact As Contact, rawContact As Contact) As IAsyncOperation(Of Boolean)

Parameters

aggregateContact
Contact

The aggregate contact on which to set the picture.

rawContact
Contact

The raw contact that provides the picture for the aggregate.

Returns

true if successful; otherwise, false.

Windows requirements

App capabilities
contactsSystem

Applies to