ReceiveParametersContent 构造函数

定义

创建 ReceiveParametersContent 类的新实例。

重载

ReceiveParametersContent()

创建 ReceiveParametersContent 类的新实例。

ReceiveParametersContent(IDictionary<String,OutArgument>)

使用指定的参数初始化 ReceiveParametersContent 类的新实例。

ReceiveParametersContent()

创建 ReceiveParametersContent 类的新实例。

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

适用于

ReceiveParametersContent(IDictionary<String,OutArgument>)

使用指定的参数初始化 ReceiveParametersContent 类的新实例。

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
IDictionary<String,OutArgument>

键值对的集合,其中键包含参数名称,值包含自变量。

示例

下面的示例演示如何使用此构造函数。

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

适用于