편집

다음을 통해 공유


CompensateActivity Constructors

Definition

Initializes a new instance of the CompensateActivity class.

Overloads

CompensateActivity()

Initializes a new instance of the CompensateActivity class.

CompensateActivity(String)

Initializes a new instance of the CompensateActivity class using the name of the activity.

CompensateActivity()

Initializes a new instance of the CompensateActivity class.

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

Examples

The following example demonstrates creating a CompensateActivity object. This example is from the Compensation SDK sample. For more information, see Compensation Sample.

this.CompensateRefund = new System.Workflow.ComponentModel.CompensateActivity();
Me.CompensateRefund = New System.Workflow.ComponentModel.CompensateActivity()

Applies to

CompensateActivity(String)

Initializes a new instance of the CompensateActivity class using the name of the activity.

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

Parameters

name
String

The user-defined name of the activity.

Applies to