ReceiveParametersContent Constructor (IDictionary<String, OutArgument>)

.NET Framework (current version)

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

Namespace:   System.ServiceModel.Activities
Assembly:  System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)

public ReceiveParametersContent(
	IDictionary<string, OutArgument> parameters


Type: System.Collections.Generic.IDictionary<String, OutArgument>

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

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)},

.NET Framework
Available since 4.0
Return to top