共用方式為


PrintWorkflowBackgroundSession.SetupRequested 事件

定義

先在列印工作流程背景會話中引發。 此事件會公開列印工作的相關資訊,但不會公開列印內容本身的資訊。 註冊此事件,以在列印之前對列印工作組態執行工作。

// Register
event_token SetupRequested(TypedEventHandler<PrintWorkflowBackgroundSession, PrintWorkflowBackgroundSetupRequestedEventArgs const&> const& handler) const;

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

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

事件類型

適用於