DataPackage.ShareCompleted 事件

定义

共享完成后触发的事件。 可将共享发送给应用、提供商或联系人。

// Register
event_token ShareCompleted(TypedEventHandler<DataPackage, ShareCompletedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
DataPackage::ShareCompleted_revoker ShareCompleted(auto_revoke_t, TypedEventHandler<DataPackage, ShareCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<DataPackage,ShareCompletedEventArgs> ShareCompleted;
function onShareCompleted(eventArgs) { /* Your code */ }
dataPackage.addEventListener("sharecompleted", onShareCompleted);
dataPackage.removeEventListener("sharecompleted", onShareCompleted);
- or -
dataPackage.onsharecompleted = onShareCompleted;
Public Custom Event ShareCompleted As TypedEventHandler(Of DataPackage, ShareCompletedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

注意

选择“复制链接”不被视为 共享 ,因此不会触发此事件,也不会 ShareCanceled触发 。

适用于