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 が null 参照 (Visual Basic では Nothing) です。

マルチキャスト グループにまだ参加していません。

UdpAnySourceMulticastClient は破棄されています。

ソケットへのアクセスを試行しているときにエラーが発生しました。

注釈

メソッドは EndReceiveFromGroup 、マルチキャスト グループからパケットを受信する非同期操作を完了します。

受信操作の実行中にソケットエラーが発生した場合は、 SocketException がスローされます。 受信したエラーは、列挙体の SocketError メンバーとして指定されます。

適用対象