語言

UdpAnySourceMulticastClient.EndReceiveFromGroup 方法

定義

警告

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

完成從加入的多播群組接收封包的非同步操作,並提供所接收的資訊。

public:
 int EndReceiveFromGroup(IAsyncResult ^ result, [Runtime::InteropServices::Out] System::Net::IPEndPoint ^ % source);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public int EndReceiveFromGroup(IAsyncResult result, out System.Net.IPEndPoint source);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.EndReceiveFromGroup : IAsyncResult * IPEndPoint -> int
Public Function EndReceiveFromGroup (result As IAsyncResult, ByRef source As IPEndPoint) As Integer

參數

result
IAsyncResult

這是非同步接收操作的結果。

source
IPEndPoint

封包接收來源端點。

傳回

緩衝區參數中儲存的訊息長度(位元組)會傳遞給方法 BeginReceiveFromGroup(Byte[], Int32, Int32, AsyncCallback, Object) 。

屬性

例外狀況

result 是空參考(Visual Basic 中無任何參考)。

多播團隊尚未加入。

這些 UdpAnySourceMulticastClient 已經被處理掉了。

嘗試存取該套接字時發生錯誤。

備註

此 EndReceiveFromGroup 方法完成一個非同步操作,以接收來自多播群組的封包。

若執行接收操作時套接字故障,會拋出 a SocketException 。 接收到的錯誤會被指定為列舉的成員 SocketError 。

適用於