ContactDataProviderConnection.DeleteContactRequested Event

Definition

Raised when the client app attempts to delete a contact.

// Register
event_token DeleteContactRequested(TypedEventHandler<ContactDataProviderConnection, ContactListDeleteContactRequestEventArgs const&> const& handler) const;

// Revoke with event_token
void DeleteContactRequested(event_token const* cookie) const;

// Revoke with event_revoker
ContactDataProviderConnection::DeleteContactRequested_revoker DeleteContactRequested(auto_revoke_t, TypedEventHandler<ContactDataProviderConnection, ContactListDeleteContactRequestEventArgs const&> const& handler) const;
public event TypedEventHandler<ContactDataProviderConnection,ContactListDeleteContactRequestEventArgs> DeleteContactRequested;
function onDeleteContactRequested(eventArgs) { /* Your code */ }
contactDataProviderConnection.addEventListener("deletecontactrequested", onDeleteContactRequested);
contactDataProviderConnection.removeEventListener("deletecontactrequested", onDeleteContactRequested);
- or -
contactDataProviderConnection.ondeletecontactrequested = onDeleteContactRequested;
Public Custom Event DeleteContactRequested As TypedEventHandler(Of ContactDataProviderConnection, ContactListDeleteContactRequestEventArgs) 

Event Type

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)
App capabilities
contactsSystem

Applies to