共用方式為


PrintSupportExtensionSession.PrintTicketValidationRequested 事件

定義

當系統需要驗證列印票證時引發。

// 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) 

事件類型

備註

在列印工作期間,可以隨時引發此事件。 程式碼驗證列印票證之後,請呼叫 SetPrintTicketValidationStatus 來指出列印票證是否已解決、發生衝突或無效。

適用於