SendActivity.ServiceOperationInfo 属性

定义

定义 SendActivity 活动与其通信的服务的协定和操作。

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

属性值

TypedOperationInfo

一个 TypedOperationInfo 对象,其中包含协定名称、协定类型、操作名称(可能与实际方法名称截然不同)、操作是否为单向操作以及包括有关操作的参数在内的方法信息。

属性

示例

下面的示例演示如何访问 ServiceOperationInfo 属性。 此示例从 Conversations SDK 示例改写而来。

SendActivity RequestQuoteFromShipper3 = new SendActivity();
TypedOperationInfo typedOperationInfo2 = new TypedOperationInfo();
typedOperationInfo2.ContractType = typeof(IShippingRequest);
typedOperationInfo2.Name = "RequestShippingQuote";
RequestQuoteFromShipper3.ServiceOperationInfo = typedOperationInfo2;

注解

SendActivity 活动始终引用现有协定及其定义的操作。 SendActivity 活动不能自行定义协定。

适用于