SendActivity.ServiceOperationInfo Property
In questo articolo
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.
Defines the contract and operation of the service that the SendActivity
activity communicates with.
public:
property System::Workflow::Activities::TypedOperationInfo ^ ServiceOperationInfo { System::Workflow::Activities::TypedOperationInfo ^ get(); void set(System::Workflow::Activities::TypedOperationInfo ^ value); };
[System.ComponentModel.Browsable(true)]
public System.Workflow.Activities.TypedOperationInfo ServiceOperationInfo { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.ServiceOperationInfo : System.Workflow.Activities.TypedOperationInfo with get, set
Public Property ServiceOperationInfo As TypedOperationInfo
A TypedOperationInfo object that contains the contract name, the contract type, the operation name, (which may be distinct from the actual method name), whether the operation is a one-way operation, and method information including parameters about the operation.
- Attributes
The following example shows how to access the ServiceOperationInfo
property. This example was adapted from the Conversations
SDK sample.
SendActivity RequestQuoteFromShipper3 = new SendActivity();
TypedOperationInfo typedOperationInfo2 = new TypedOperationInfo();
typedOperationInfo2.ContractType = typeof(IShippingRequest);
typedOperationInfo2.Name = "RequestShippingQuote";
RequestQuoteFromShipper3.ServiceOperationInfo = typedOperationInfo2;
The SendActivity activity always refers to an existing contract and its defined operations. There is no provision that allows a SendActivity activity to define a contract itself.
Applies to
Prodotto | Versioni |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: