DataPackage.ShareCanceled 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
取消共享时引发。
// Register
event_token ShareCanceled(TypedEventHandler<DataPackage, IInspectable const&> const& handler) const;
// Revoke with event_token
void ShareCanceled(event_token const* cookie) const;
// Revoke with event_revoker
DataPackage::ShareCanceled_revoker ShareCanceled(auto_revoke_t, TypedEventHandler<DataPackage, IInspectable const&> const& handler) const;
public event TypedEventHandler<DataPackage,object> ShareCanceled;
function onShareCanceled(eventArgs) { /* Your code */ }
dataPackage.addEventListener("sharecanceled", onShareCanceled);
dataPackage.removeEventListener("sharecanceled", onShareCanceled);
- or -
dataPackage.onsharecanceled = onShareCanceled;
Public Custom Event ShareCanceled As TypedEventHandler(Of DataPackage, Object)
事件类型
TypedEventHandler<DataPackage,IInspectable>
Windows 要求
设备系列 |
Windows 10, version 2004 (在 10.0.19041.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v10.0 中引入)
|