ContactCardDelayedDataLoader.SetData | setData method

Applies to Windows and Windows Phone

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

Syntax


contactCardDelayedDataLoader.setData(contact);

Parameters

contact

Type: Contact

The contact to update the contact card with.

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 Managing contact cards (XAML) and Managing contact cards (HTML).

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

See also

Contact manager API sample
ContactCardDelayedDataLoader

 

 

Show:
© 2014 Microsoft