共用方式為


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 活動自行定義合約的規定。

適用於