ReceiveParametersContent.Parameters 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
修改参数集合。
public:
 property System::Collections::Generic::IDictionary<System::String ^, System::Activities::OutArgument ^> ^ Parameters { System::Collections::Generic::IDictionary<System::String ^, System::Activities::OutArgument ^> ^ get(); };public System.Collections.Generic.IDictionary<string,System.Activities.OutArgument> Parameters { get; }member this.Parameters : System.Collections.Generic.IDictionary<string, System.Activities.OutArgument>Public ReadOnly Property Parameters As IDictionary(Of String, OutArgument)属性值
键值对的有序集合,其中键包含参数名称,值包含参数。
示例
下面的示例演示如何设置 Parameters 属性。
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)},
        }
    }
};