PrintWorkflowVirtualPrinterSession.VirtualPrinterDataAvailable 事件

定义

// Register
event_token VirtualPrinterDataAvailable(TypedEventHandler<PrintWorkflowVirtualPrinterSession, PrintWorkflowVirtualPrinterDataAvailableEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintWorkflowVirtualPrinterSession::VirtualPrinterDataAvailable_revoker VirtualPrinterDataAvailable(auto_revoke_t, TypedEventHandler<PrintWorkflowVirtualPrinterSession, PrintWorkflowVirtualPrinterDataAvailableEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowVirtualPrinterSession,PrintWorkflowVirtualPrinterDataAvailableEventArgs> VirtualPrinterDataAvailable;
function onVirtualPrinterDataAvailable(eventArgs) { /* Your code */ }
printWorkflowVirtualPrinterSession.addEventListener("virtualprinterdataavailable", onVirtualPrinterDataAvailable);
printWorkflowVirtualPrinterSession.removeEventListener("virtualprinterdataavailable", onVirtualPrinterDataAvailable);
- or -
printWorkflowVirtualPrinterSession.onvirtualprinterdataavailable = onVirtualPrinterDataAvailable;
Public Custom Event VirtualPrinterDataAvailable As TypedEventHandler(Of PrintWorkflowVirtualPrinterSession, PrintWorkflowVirtualPrinterDataAvailableEventArgs) 

事件类型

适用于