FaultHandlerActivity.FaultType Property
.NET Framework 3.0
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)
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
'Declaration Public Property FaultType As Type 'Usage Dim instance As FaultHandlerActivity Dim value As Type value = instance.FaultType instance.FaultType = value
/** @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.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.Community Additions
ADD
Show: