Share via


ContactList.SaveContactAsync(Contact) Method

Definition

Asynchronously saves the specified Contact to the ContactStore.

public:
 virtual IAsyncAction ^ SaveContactAsync(Contact ^ contact) = SaveContactAsync;
IAsyncAction SaveContactAsync(Contact const& contact);
public IAsyncAction SaveContactAsync(Contact contact);
function saveContactAsync(contact)
Public Function SaveContactAsync (contact As Contact) As IAsyncAction

Parameters

contact
Contact

The contact to save.

Returns

An async action indicating that the method has completed.

Windows requirements

App capabilities
contactsSystem

Remarks

Throws a System.ArgumentException: 'Value does not fall within the expected range.' when the contact passed as parameter has a RemoteID set which is identical to a contacts RemoteID already saved on this device.

Applies to