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 以指示打印票证是否已解决、存在冲突或无效。