ReceiveParametersContent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the ReceiveParametersContent class.
Overloads
ReceiveParametersContent() |
Creates a new instance of the ReceiveParametersContent class. |
ReceiveParametersContent(IDictionary<String,OutArgument>) |
Initializes a new instance of the ReceiveParametersContent class with the specified parameters. |
ReceiveParametersContent()
Creates a new instance of the ReceiveParametersContent class.
public:
ReceiveParametersContent();
public ReceiveParametersContent ();
Public Sub New ()
Applies to
ReceiveParametersContent(IDictionary<String,OutArgument>)
Initializes a new instance of the ReceiveParametersContent class with the specified parameters.
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
- parameters
- IDictionary<String,OutArgument>
A collection of key-value pairs with the keys containing the parameter names and the values containing the arguments.
Examples
The following example shows how to use this constructor.
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)},
}
}
};
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈