PrintWorkflowForegroundSession.SetupRequested 事件

定义

首先在打印工作流前台会话中引发。 此事件公开有关打印作业的信息,但不公开打印内容本身的信息。 注册此事件,以便在打印作业之前对打印作业执行依赖于 UI 的工作。

// Register
event_token SetupRequested(TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowForegroundSetupRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintWorkflowForegroundSession::SetupRequested_revoker SetupRequested(auto_revoke_t, TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowForegroundSetupRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowForegroundSession,PrintWorkflowForegroundSetupRequestedEventArgs> SetupRequested;
function onSetupRequested(eventArgs) { /* Your code */ }
printWorkflowForegroundSession.addEventListener("setuprequested", onSetupRequested);
printWorkflowForegroundSession.removeEventListener("setuprequested", onSetupRequested);
- or -
printWorkflowForegroundSession.onsetuprequested = onSetupRequested;
Public Custom Event SetupRequested As TypedEventHandler(Of PrintWorkflowForegroundSession, PrintWorkflowForegroundSetupRequestedEventArgs) 

事件类型

适用于