共用方式為


SendActivity.AfterResponse 事件

定義

會在從服務收到回應後發生。

public:
 event EventHandler<System::Workflow::Activities::SendActivityEventArgs ^> ^ AfterResponse;
[System.ComponentModel.Browsable(true)]
public event EventHandler<System.Workflow.Activities.SendActivityEventArgs> AfterResponse;
[<System.ComponentModel.Browsable(true)>]
member this.AfterResponse : EventHandler<System.Workflow.Activities.SendActivityEventArgs> 
Public Custom Event AfterResponse As EventHandler(Of SendActivityEventArgs) 

事件類型

屬性

範例

下列範例顯示如何使用 AfterResponse 事件。

[System.Diagnostics.DebuggerNonUserCode]
private void InitializeComponent()
{
    SendActivity sendActivity1 = new SendActivity();
    sendActivity1.AfterResponse += new EventHandler<SendActivityEventArgs>(sendActivity1_AfterResponse);
}

void sendActivity1_AfterResponse(object sender, SendActivityEventArgs e)
{
    Console.WriteLine("SendActivity1 AfterResponse event fired.");
}

備註

與此事件相關聯的事件處理常式,可用於讀取來自叫用的服務作業之傳回值。

適用於