Dela via


PrintSupportExtensionSession.PrintTicketValidationRequested Event

Definition

Raised when the system needs to validate a print ticket.

// Register
event_token PrintTicketValidationRequested(TypedEventHandler<PrintSupportExtensionSession, PrintSupportPrintTicketValidationRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintSupportExtensionSession::PrintTicketValidationRequested_revoker PrintTicketValidationRequested(auto_revoke_t, TypedEventHandler<PrintSupportExtensionSession, PrintSupportPrintTicketValidationRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintSupportExtensionSession,PrintSupportPrintTicketValidationRequestedEventArgs> PrintTicketValidationRequested;
function onPrintTicketValidationRequested(eventArgs) { /* Your code */ }
printSupportExtensionSession.addEventListener("printticketvalidationrequested", onPrintTicketValidationRequested);
printSupportExtensionSession.removeEventListener("printticketvalidationrequested", onPrintTicketValidationRequested);
- or -
printSupportExtensionSession.onprintticketvalidationrequested = onPrintTicketValidationRequested;
Public Custom Event PrintTicketValidationRequested As TypedEventHandler(Of PrintSupportExtensionSession, PrintSupportPrintTicketValidationRequestedEventArgs) 

Event Type

Remarks

This event can be raised any time during a print job. After your code validates the print ticket, call SetPrintTicketValidationStatus to indicate whether the print ticket has been resolved, has conflicts, or is invalid.

Applies to