Share via


ContactCardDelayedDataLoader.SetData(Contact) Method

Definition

Updates the contact card with the Contact object and completes the contact card UI.

public:
 virtual void SetData(Contact ^ contact) = SetData;
void SetData(Contact const& contact);
public void SetData(Contact contact);
function setData(contact)
Public Sub SetData (contact As Contact)

Parameters

contact
Contact

The contact to update the contact card with.

Windows requirements

App capabilities
contactsSystem

Remarks

Note

The contact card will time out within four seconds after ShowDelayLoadedContactCard returns. So, if SetData isn't called within this four second interval, the contact card UI becomes final, and no more updates can be applied. You can call SetData only once and before you call Close. If you call SetData twice or after Close, SetData fails with an exception; the HRESULT error code is HRESULT_FROM_WIN32(ERROR_INVALID_STATE).

For info about how to manage contacts, see Contacts and calendar.

Applies to

See also