PrintWorkflowVirtualPrinterSession.VirtualPrinterDataAvailable 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.
// 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)
Event Type
TypedEventHandler<PrintWorkflowVirtualPrinterSession,PrintWorkflowVirtualPrinterDataAvailableEventArgs>