DataPackage.ShareCanceled Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a share is canceled.
// 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)
Event Type
TypedEventHandler<DataPackage,IInspectable>
Windows requirements
Device family |
Windows 10, version 2004 (introduced in 10.0.19041.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v10.0)
|