Dela via


DataPackage.OperationCompleted Event

Definition

Occurs when a paste operation is completed.

// Register
event_token OperationCompleted(TypedEventHandler<DataPackage, OperationCompletedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
DataPackage::OperationCompleted_revoker OperationCompleted(auto_revoke_t, TypedEventHandler<DataPackage, OperationCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<DataPackage,OperationCompletedEventArgs> OperationCompleted;
function onOperationCompleted(eventArgs) { /* Your code */ }
dataPackage.addEventListener("operationcompleted", onOperationCompleted);
dataPackage.removeEventListener("operationcompleted", onOperationCompleted);
- or -
dataPackage.onoperationcompleted = onOperationCompleted;
Public Custom Event OperationCompleted As TypedEventHandler(Of DataPackage, OperationCompletedEventArgs) 

Event Type

Remarks

This event occurs when a user or program pastes content from the Clipboard. If your app is using the DataPackage for share operations, you do not have to handle this event.

Applies to