編集

次の方法で共有


CompensationHandlerActivity Constructors

Definition

Initializes a new instance of the CompensationHandlerActivity class.

Overloads

CompensationHandlerActivity()

Initializes a new instance of the CompensationHandlerActivity class.

CompensationHandlerActivity(String)

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

CompensationHandlerActivity()

Initializes a new instance of the CompensationHandlerActivity class.

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

Examples

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

this.CompensateOrder = new System.Workflow.ComponentModel.CompensationHandlerActivity();
Me.CompensateOrder = New System.Workflow.ComponentModel.CompensationHandlerActivity()

Applies to

CompensationHandlerActivity(String)

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

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

Parameters

name
String

A string that contains the name of this instance.

Exceptions

activityName is a null reference (Nothing in Visual Basic).

Applies to