共用方式為


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

適用於