WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent Method

Definition

Raises the ServicesExceptionNotHandled event.

C#
protected void RaiseServicesExceptionNotHandledEvent(Exception exception, Guid instanceId);

Parameters

exception
Exception

The exception that could not be handled.

instanceId
Guid

The Guid of the workflow instance associated with the unhandled exception.

Remarks

Your service can call RaiseServicesExceptionNotHandledEvent to raise the WorkflowRuntime.ServicesExceptionNotHandled event when it encounters an exception that it cannot handle during its execution. You should pass the Guid of the workflow instance associated with the unhandled exception. For example, a timer service might pass the Guid associated with the timer for which the exception occurred.

Applies to

Proizvod Verzije
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1