FaultHandlerActivity.FaultType Property

Gets and sets the Type of the exceptions to be handled by the FaultHandlerActivity. Exceptions of type derived from the type specified in FaultType will also be handled.

Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

public Type FaultType { get; set; }
/** @property */
public Type get_FaultType ()

/** @property */
public void set_FaultType (Type value)

public function get FaultType () : Type

public function set FaultType (value : Type)

Not applicable.

Property Value

The Type of the associated Exception.

This property must be set in order to use the FaultHandlerActivity.

The following example demonstrates setting the FaultType property. This example is from the Compensation SDK sample. For more information, see Compensation Sample.

this.NoProductFault.FaultType = typeof(Microsoft.Samples.Workflow.Compensation.DiscontinuedProductException);

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