共用方式為


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

適用於