Parameters Property
Collapse the table of content
Expand the table of content

ReceiveParametersContent.Parameters Property

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

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft