ReceiveParametersContent Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Cria uma nova instância da ReceiveParametersContent classe.
Sobrecargas
| Name | Description |
|---|---|
| ReceiveParametersContent() |
Cria uma nova instância da ReceiveParametersContent classe. |
| ReceiveParametersContent(IDictionary<String,OutArgument>) |
Inicializa uma nova instância da ReceiveParametersContent classe com os parâmetros especificados. |
ReceiveParametersContent()
Cria uma nova instância da ReceiveParametersContent classe.
public:
ReceiveParametersContent();
public ReceiveParametersContent();
Public Sub New ()
Aplica-se a
ReceiveParametersContent(IDictionary<String,OutArgument>)
Inicializa uma nova instância da ReceiveParametersContent classe 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 dos parâmetros e os valores que contêm os argumentos.
Exemplos
O exemplo seguinte mostra como usar este 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)},
}
}
};