CompensatableTransactionScopeActivity 构造函数

定义

初始化 CompensatableTransactionScopeActivity 类的新实例。

重载

CompensatableTransactionScopeActivity()

初始化 CompensatableTransactionScopeActivity 类的新实例。

CompensatableTransactionScopeActivity(String)

使用活动名初始化 CompensatableTransactionScopeActivity 类的新实例。

CompensatableTransactionScopeActivity()

初始化 CompensatableTransactionScopeActivity 类的新实例。

public:
 CompensatableTransactionScopeActivity();
public CompensatableTransactionScopeActivity ();
Public Sub New ()

另请参阅

适用于

CompensatableTransactionScopeActivity(String)

使用活动名初始化 CompensatableTransactionScopeActivity 类的新实例。

public:
 CompensatableTransactionScopeActivity(System::String ^ name);
public CompensatableTransactionScopeActivity (string name);
new System.Workflow.ComponentModel.CompensatableTransactionScopeActivity : string -> System.Workflow.ComponentModel.CompensatableTransactionScopeActivity
Public Sub New (name As String)

参数

name
String

活动的用户定义名称。

示例

下面的示例演示如何创建 CompensatableTransactionScopeActivity 对象。 此示例摘自“补偿 SDK”示例。 有关详细信息,请参阅 补偿示例

this.OrderScope = new System.Workflow.ComponentModel.CompensatableTransactionScopeActivity();
Me.OrderScope = New System.Workflow.ComponentModel.CompensatableTransactionScopeActivity()

另请参阅

适用于