FaultHandlerActivity Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FaultHandlerActivity class.
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. |
Initializes a new instance of the FaultHandlerActivity class.
public:
FaultHandlerActivity();
public FaultHandlerActivity ();
Public Sub New ()
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();
Me.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 |
Initializes a new instance of the FaultHandlerActivity class using the name of the activity.
public:
FaultHandlerActivity(System::String ^ name);
public FaultHandlerActivity (string name);
new System.Workflow.ComponentModel.FaultHandlerActivity : string -> System.Workflow.ComponentModel.FaultHandlerActivity
Public Sub New (name As String)
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 |
משוב של .NET
.NET הוא פרויקט קוד פתוח. בחר קישור כדי לספק משוב: