Bagikan melalui


IInputChannel.EndReceive(IAsyncResult) Metode

Definisi

Menyelesaikan operasi asinkron untuk menerima pesan.

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

Parameter

result
IAsyncResult

yang IAsyncResult dikembalikan oleh panggilan ke salah BeginReceive satu metode.

Mengembalikan

Yang Message diterima.

Contoh

Kode berikut menggambarkan cara menerapkan metode ini:

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

Berlaku untuk