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.");
}

注解

可以使用与此事件关联的事件处理程序来读取调用的服务操作的返回值。

适用于