PrintSupportExtensionSession.PrintTicketValidationRequested 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當系統需要驗證列印票證時引發。
// 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 來指出列印票證是否已解決、發生衝突或無效。