Contact​Card​Delayed​Data​Loader Contact​Card​Delayed​Data​Loader Contact​Card​Delayed​Data​Loader Class

Definition

Represents a delayed data loader for a contact card.

public sealed class ContactCardDelayedDataLoader : IContactCardDelayedDataLoader, IClosablepublic sealed class ContactCardDelayedDataLoader : IContactCardDelayedDataLoader, IDisposablePublic NotInheritable Class ContactCardDelayedDataLoader Implements IContactCardDelayedDataLoader, IDisposable
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Call ContactManager.ShowDelayLoadedContactCard to show a contact card with delayed data loader.

For info about how to manage contacts, see Managing contact cards and Managing contact cards .

Methods

Close() Close() Close()

Closes the delayed data loader. This informs the contact card to complete the UI (for example, remove any progress indications, like the progress bar) because no more updates to the contact card UI will be requested. The user then can determine that the contact data shown in the UI is complete.

public void Close()This member is not implemented in C#This member is not implemented in VB.Net
Attributes

Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This member is not implemented in C++void Dispose()Sub Dispose
Attributes

SetData(Contact) SetData(Contact) SetData(Contact)

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

public void SetData(Contact contact)public void SetData(Contact contact)Public Function SetData(contact As Contact) As void
Parameters
contact
Contact Contact Contact

The contact to update the contact card with.

Attributes

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 and Managing contact cards .

See Also

See Also