IInputChannel.EndReceive(IAsyncResult) 方法

定义

完成用于接收消息的异步操作。

public:
 System::ServiceModel::Channels::Message ^ EndReceive(IAsyncResult ^ result);
public System.ServiceModel.Channels.Message EndReceive (IAsyncResult result);
abstract member EndReceive : IAsyncResult -> System.ServiceModel.Channels.Message
Public Function EndReceive (result As IAsyncResult) As Message

参数

result
IAsyncResult

通过调用 IAsyncResult 方法之一返回的 BeginReceive

返回

接收到的 Message

示例

下面的代码演示如何实现此方法:

public Message EndReceive(IAsyncResult result)
{
    return ReceiveAsyncResult<TChannel>.End(result);
}

适用于