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).
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈