FaultHandlerActivity.FaultType Property


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

Namespace:   System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public Type FaultType { get; set; }

Property Value

Type: System.Type

The Type of the associated Exception.

This property must be set to use the FaultHandlerActivity.

The following example shows how to set the FaultType property. This example is from the Compensation SDK sample. For more information, seeCompensation Sample.

this.NoProductFault.FaultType = typeof(DiscontinuedProductException);

.NET Framework
Available since 3.0
Return to top