Επεξεργασία

Κοινή χρήση μέσω


SendActivity.ServiceOperationInfo Property

Definition

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

Property Value

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

Examples

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;

Remarks

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