FaultHandlerActivity 构造函数
定义
初始化 FaultHandlerActivity 类的新实例。Initializes a new instance of the FaultHandlerActivity class.
重载
| FaultHandlerActivity() |
初始化 FaultHandlerActivity 类的新实例。Initializes a new instance of the FaultHandlerActivity class. |
| FaultHandlerActivity(String) |
使用活动名初始化 FaultHandlerActivity 类的新实例。Initializes a new instance of the FaultHandlerActivity class using the name of the activity. |
FaultHandlerActivity()
初始化 FaultHandlerActivity 类的新实例。Initializes a new instance of the FaultHandlerActivity class.
public:
FaultHandlerActivity();
public FaultHandlerActivity ();
Public Sub New ()
示例
下面的示例演示如何创建 FaultHandlerActivity 类的实例。The following example shows how to create an instance of the FaultHandlerActivity class. 此示例摘自“补偿 SDK”示例。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()
适用于
FaultHandlerActivity(String)
使用活动名初始化 FaultHandlerActivity 类的新实例。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)
参数
- name
- String
活动的用户定义名称。The user-defined name of the activity.
例外
activityName 为空引用(在 Visual Basic 中为 Nothing)。activityName is a null reference (Nothing in Visual Basic).