共用方式為


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) 

事件類型

適用於