Επεξεργασία

Κοινή χρήση μέσω


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.

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

Applies to

ReceiveParametersContent(IDictionary<String,OutArgument>)

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

public:
 ReceiveParametersContent(System::Collections::Generic::IDictionary<System::String ^, System::Activities::OutArgument ^> ^ parameters);
public ReceiveParametersContent (System.Collections.Generic.IDictionary<string,System.Activities.OutArgument> parameters);
new System.ServiceModel.Activities.ReceiveParametersContent : System.Collections.Generic.IDictionary<string, System.Activities.OutArgument> -> System.ServiceModel.Activities.ReceiveParametersContent
Public Sub New (parameters As IDictionary(Of String, OutArgument))

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.

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