PrintWorkflowBackgroundSession.SetupRequested 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
先在列印工作流程背景會話中引發。 此事件會公開列印工作的相關資訊,但不會公開列印內容本身的資訊。 註冊此事件,以在列印之前對列印工作組態執行工作。
// 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)