ReceiveParametersContent 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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)},
}
}
};