ערוך

שתף באמצעות


WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent Method

Definition

Raises the ServicesExceptionNotHandled event.

protected:
 void RaiseServicesExceptionNotHandledEvent(Exception ^ exception, Guid instanceId);
protected void RaiseServicesExceptionNotHandledEvent (Exception exception, Guid instanceId);
member this.RaiseServicesExceptionNotHandledEvent : Exception * Guid -> unit
Protected Sub RaiseServicesExceptionNotHandledEvent (exception As Exception, instanceId As Guid)

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