Sends data to a specific end point, starting at the indicated location in the data.
[Visual Basic] Overloads Public Function SendTo( _ ByVal buffer As Array, _ ByVal size As Integer, _ ByVal flags As Integer, _ ByVal remoteEP As EndPoint _ ) As Integer [C#] public int SendTo( Array buffer, int size, int flags, EndPoint remoteEP ); [C++] public: int SendTo( Array* buffer, int size, int flags, EndPoint* remoteEP ); [JScript] public function SendTo( buffer : Array, size : int, flags : int, remoteEP : EndPoint ) : int;
If successful, the number of bytes sent; otherwise, an invalid socket error is returned.
Exception Type | Condition |
---|---|
InvalidOperationException | [To be supplied.] |
Socket Class | Socket Members | System.Net.Sockets Namespace | Socket.SendTo Overload List