Share via


PrintWorkflowJobBackgroundSession.JobIssueDetected Event

Definition

Raised when an error or warning is detected in the the current printer job operation.

// Register
event_token JobIssueDetected(TypedEventHandler<PrintWorkflowJobBackgroundSession, PrintWorkflowJobIssueDetectedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintWorkflowJobBackgroundSession::JobIssueDetected_revoker JobIssueDetected(auto_revoke_t, TypedEventHandler<PrintWorkflowJobBackgroundSession, PrintWorkflowJobIssueDetectedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowJobBackgroundSession,PrintWorkflowJobIssueDetectedEventArgs> JobIssueDetected;
function onJobIssueDetected(eventArgs) { /* Your code */ }
printWorkflowJobBackgroundSession.addEventListener("jobissuedetected", onJobIssueDetected);
printWorkflowJobBackgroundSession.removeEventListener("jobissuedetected", onJobIssueDetected);
- or -
printWorkflowJobBackgroundSession.onjobissuedetected = onJobIssueDetected;
Public Custom Event JobIssueDetected As TypedEventHandler(Of PrintWorkflowJobBackgroundSession, PrintWorkflowJobIssueDetectedEventArgs) 

Event Type

Windows requirements

Device family
Windows 11, version 24H2 (introduced in 10.0.26100.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v19.0)

Remarks

In the handler for this event, apps can call SkipSystemErrorToast to suppress the default system toast notification for the issue. This enables apps to launch their own custom toast notification without the user receiving redundant notifications.

Applies to