Freigeben über


ContactDataProviderConnection.DeleteContactRequested Ereignis

Definition

Wird ausgelöst, wenn die Client-App versucht, einen Kontakt zu löschen.

// 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) 

Ereignistyp

Windows-Anforderungen

Gerätefamilie
Windows 10 Fall Creators Update (eingeführt in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v5.0)
App-Funktionen
contactsSystem

Gilt für: