ReceiveParametersContent.Parameters Property

.NET Framework 4.6 and 4.5

Modifies the parameters collection.

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

public IDictionary<string, OutArgument> Parameters { get; private set; }

Property Value

Type: System.Collections.Generic.IDictionary<String, OutArgument>
An ordered collection of key-value pairs with the keys containing the parameter names and the values containing the arguments.

The following example shows how to set the Parameters property.

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft