Partilhar via


ReceiveParametersContent Construtores

Definição

Cria uma nova instância da classe ReceiveParametersContent.

Sobrecargas

ReceiveParametersContent()

Cria uma nova instância da classe ReceiveParametersContent.

ReceiveParametersContent(IDictionary<String,OutArgument>)

Inicializa uma nova instância da classe ReceiveParametersContent com os parâmetros especificados.

ReceiveParametersContent()

Cria uma nova instância da classe ReceiveParametersContent.

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

Aplica-se a

ReceiveParametersContent(IDictionary<String,OutArgument>)

Inicializa uma nova instância da classe ReceiveParametersContent com os parâmetros especificados.

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))

Parâmetros

parameters
IDictionary<String,OutArgument>

Uma coleção de pares chave-valor com as chaves que contêm os nomes de parâmetro e os valores que contêm os argumentos.

Exemplos

O exemplo a seguir mostra como usar esse construtor.

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

Aplica-se a