FaultHandlerActivity Constructors

Definition

Initializes a new instance of the FaultHandlerActivity class.

Overloads

FaultHandlerActivity()

Initializes a new instance of the FaultHandlerActivity class.

FaultHandlerActivity(String)

Initializes a new instance of the FaultHandlerActivity class using the name of the activity.

FaultHandlerActivity()

Initializes a new instance of the FaultHandlerActivity class.

public FaultHandlerActivity ();

Examples

The following example shows how to create an instance of the FaultHandlerActivity class. This example is from the Compensation SDK sample. For more information, see Compensation Sample.

this.NoProductFaultHandler = new System.Workflow.ComponentModel.FaultHandlerActivity();

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

FaultHandlerActivity(String)

Initializes a new instance of the FaultHandlerActivity class using the name of the activity.

public FaultHandlerActivity (string name);

Parameters

name
String

The user-defined name of the activity.

Exceptions

activityName is a null reference (Nothing in Visual Basic).

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1