ContactDataProviderConnection.CreateOrUpdateContactRequested Событие
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возникает, когда клиентское приложение пытается создать или обновить контакт.
// Register
event_token CreateOrUpdateContactRequested(TypedEventHandler<ContactDataProviderConnection, ContactListCreateOrUpdateContactRequestEventArgs const&> const& handler) const;
// Revoke with event_token
void CreateOrUpdateContactRequested(event_token const* cookie) const;
// Revoke with event_revoker
ContactDataProviderConnection::CreateOrUpdateContactRequested_revoker CreateOrUpdateContactRequested(auto_revoke_t, TypedEventHandler<ContactDataProviderConnection, ContactListCreateOrUpdateContactRequestEventArgs const&> const& handler) const;
public event TypedEventHandler<ContactDataProviderConnection,ContactListCreateOrUpdateContactRequestEventArgs> CreateOrUpdateContactRequested;
function onCreateOrUpdateContactRequested(eventArgs) { /* Your code */ }
contactDataProviderConnection.addEventListener("createorupdatecontactrequested", onCreateOrUpdateContactRequested);
contactDataProviderConnection.removeEventListener("createorupdatecontactrequested", onCreateOrUpdateContactRequested);
- or -
contactDataProviderConnection.oncreateorupdatecontactrequested = onCreateOrUpdateContactRequested;
Public Custom Event CreateOrUpdateContactRequested As TypedEventHandler(Of ContactDataProviderConnection, ContactListCreateOrUpdateContactRequestEventArgs)
Тип события
Требования к Windows
Семейство устройств |
Windows 10 Fall Creators Update (появилось в 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (появилось в v5.0)
|
Возможности приложения |
contactsSystem
|