PrintWorkflowJobBackgroundSession.JobStarting 事件

定義

當列印工作由列印工作流程應用程式啟動時引發。 您的列印工作流程應用程式可以使用事件引數物件的成員,以其他方式略過系統轉譯或修改作業。

// Register
event_token JobStarting(TypedEventHandler<PrintWorkflowJobBackgroundSession, PrintWorkflowJobStartingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintWorkflowJobBackgroundSession::JobStarting_revoker JobStarting(auto_revoke_t, TypedEventHandler<PrintWorkflowJobBackgroundSession, PrintWorkflowJobStartingEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowJobBackgroundSession,PrintWorkflowJobStartingEventArgs> JobStarting;
function onJobStarting(eventArgs) { /* Your code */ }
printWorkflowJobBackgroundSession.addEventListener("jobstarting", onJobStarting);
printWorkflowJobBackgroundSession.removeEventListener("jobstarting", onJobStarting);
- or -
printWorkflowJobBackgroundSession.onjobstarting = onJobStarting;
Public Custom Event JobStarting As TypedEventHandler(Of PrintWorkflowJobBackgroundSession, PrintWorkflowJobStartingEventArgs) 

事件類型

適用於