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