Socket.EndReceiveMessageFrom メソッド
アセンブリ: System (system.dll 内)

Public Function EndReceiveMessageFrom ( _ asyncResult As IAsyncResult, _ ByRef socketFlags As SocketFlags, _ ByRef endPoint As EndPoint, _ <OutAttribute> ByRef ipPacketInformation As IPPacketInformation _ ) As Integer
Dim instance As Socket Dim asyncResult As IAsyncResult Dim socketFlags As SocketFlags Dim endPoint As EndPoint Dim ipPacketInformation As IPPacketInformation Dim returnValue As Integer returnValue = instance.EndReceiveMessageFrom(asyncResult, socketFlags, endPoint, ipPacketInformation)
public int EndReceiveMessageFrom ( IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation )
public: int EndReceiveMessageFrom ( IAsyncResult^ asyncResult, SocketFlags% socketFlags, EndPoint^% endPoint, [OutAttribute] IPPacketInformation% ipPacketInformation )
public int EndReceiveMessageFrom ( IAsyncResult asyncResult, /** @ref */ SocketFlags socketFlags, /** @ref */ EndPoint endPoint, /** @attribute OutAttribute() */ /** @ref */ IPPacketInformation ipPacketInformation )
戻り値
正常に完了した場合は、受信したバイト数。失敗した場合は、0 を返します。

例外の種類 | 条件 |
---|---|
ArgumentNullException | asyncResult is null 参照 (Visual Basic では Nothing) または endPoint が null 参照 (Visual Basic では Nothing) です。 |
ArgumentException | |
InvalidOperationException | |
SocketException | |
ObjectDisposedException |

操作が完了していない場合、このメソッドは操作が完了するまでブロックします。
この操作を同期的に実行するには、ReceiveMessageFrom メソッドを使用します。
データグラムが、ユニキャスト、マルチキャスト、またはブロードキャストのどれを使用して送信されたのかを区別する必要がある場合は、ipPacketInformation を調べます。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSocket.EndReceiveMessageFrom メソッドを検索する場合は、下記のリンクをクリックしてください。

- Socket.EndReceiveMessageFrom メソッドのページへのリンク