FaultHandlerActivity Constructors
Definition
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.
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();
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
FaultHandlerActivity(String)
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).