PrintWorkflowJobBackgroundSession.JobStarting Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a print job is started by a print workflow app. Your print workflow app can use members of the event args object to skip system rendering or modify the operation in other ways.
// 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)