SetData | setData method
Collapse the table of content
Expand the table of content

ContactCardDelayedDataLoader.SetData | setData method

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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2016 Microsoft