編集

次の方法で共有


ReceiveActivity Constructors

Definition

Initializes a new instance of the ReceiveActivity class.

Overloads

ReceiveActivity()

Initializes a new instance of the ReceiveActivity class.

ReceiveActivity(String)

Initializes a new instance of the ReceiveActivity class, initializing its Name property.

Remarks

The ReceiveActivity constructor is typically invoked in the code-beside file created by the workflow designer.

ReceiveActivity()

Initializes a new instance of the ReceiveActivity class.

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

Examples

The following example shows how to create a new instance of the ReceiveActivity class. This code was adapted from the Conversations SDK sample, from the ShipperWorkflow.designer.cs file.

ReceiveActivity receiveActivity1 = new ReceiveActivity();

Remarks

The ReceiveActivity constructor is typically invoked in the code-beside file created by the workflow designer.

Applies to

ReceiveActivity(String)

Initializes a new instance of the ReceiveActivity class, initializing its Name property.

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

Parameters

name
String

The name to assign to the activity instance.

Examples

The following example shows how to create a new instance of the ReceiveActivity class.

ReceiveActivity receiveActivity1 = new ReceiveActivity("receiveActivity1");

Remarks

The ReceiveActivity constructor is typically invoked in the code-beside file created by the workflow designer.

Applies to