This documentation is archived and is not being maintained.

WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent Method

Raises the WorkflowRuntime.ServicesExceptionNotHandled event.

Namespace: System.Workflow.Runtime.Hosting
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)

protected void RaiseServicesExceptionNotHandledEvent (
	Exception exception,
	Guid instanceId
)
protected void RaiseServicesExceptionNotHandledEvent (
	Exception exception, 
	Guid instanceId
)
protected function RaiseServicesExceptionNotHandledEvent (
	exception : Exception, 
	instanceId : Guid
)
Not applicable.

Parameters

exception

The exception that could not be handled.

instanceId

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

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: