ReceiveParametersContent Constructors

Definition

Creates a new instance of the ReceiveParametersContent class.

Overloads

ReceiveParametersContent()

Creates a new instance of the ReceiveParametersContent class.

ReceiveParametersContent(IDictionary<String,OutArgument>)

Initializes a new instance of the ReceiveParametersContent class with the specified parameters.

ReceiveParametersContent()

Creates a new instance of the ReceiveParametersContent class.

C#
public ReceiveParametersContent();

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ReceiveParametersContent(IDictionary<String,OutArgument>)

Initializes a new instance of the ReceiveParametersContent class with the specified parameters.

C#
public ReceiveParametersContent(System.Collections.Generic.IDictionary<string,System.Activities.OutArgument> parameters);

Parameters

parameters
IDictionary<String,OutArgument>

A collection of key-value pairs with the keys containing the parameter names and the values containing the arguments.

Examples

The following example shows how to use this constructor.

C#
Receive prescriptionRequest = new Receive
{
    DisplayName = "Request Perscription",
    OperationName = "GetBaseCost",
    ServiceContractName = Constants.PharmacyServiceContractName,
    CanCreateInstance = true,
    //CorrelatesWith = customerHandle,  -- add this line for explicit correlation
    CorrelatesOn = customerQuerySet,
    Content = new ReceiveParametersContent
    {
        Parameters = 
        {
            {"Customer",new OutArgument<Customer>(customer)},
            {"Drug",new OutArgument<string>(drug)},
        }
    }
};

Applies to

.NET Framework 4.8.1 a další verze
Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1