PrintWorkflowBackgroundSession.Submitted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当最终的 XPS 打印数据可用时引发。 这在 SetupRequested 事件和依赖于 UI 的可选前台任务完成之后完成。
// Register
event_token Submitted(TypedEventHandler<PrintWorkflowBackgroundSession, PrintWorkflowSubmittedEventArgs const&> const& handler) const;
// Revoke with event_token
void Submitted(event_token const* cookie) const;
// Revoke with event_revoker
PrintWorkflowBackgroundSession::Submitted_revoker Submitted(auto_revoke_t, TypedEventHandler<PrintWorkflowBackgroundSession, PrintWorkflowSubmittedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowBackgroundSession,PrintWorkflowSubmittedEventArgs> Submitted;
function onSubmitted(eventArgs) { /* Your code */ }
printWorkflowBackgroundSession.addEventListener("submitted", onSubmitted);
printWorkflowBackgroundSession.removeEventListener("submitted", onSubmitted);
- or -
printWorkflowBackgroundSession.onsubmitted = onSubmitted;
Public Custom Event Submitted As TypedEventHandler(Of PrintWorkflowBackgroundSession, PrintWorkflowSubmittedEventArgs)