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

适用于