Receives data from a connected SecureSocket into a specific location of the receive buffer.
[Visual Basic]
Overrides Overloads Public Function Receive( _
ByVal buffer As Byte(), _
ByVal size As Integer, _
ByVal socketFlags As SocketFlags _
) As Integer
The number of bytes received.
| Exception Type | Condition | 
|---|---|
| ArgumentNullException | buffer is a null reference (Nothing in Visual Basic). | 
| ArgumentOutOfRangeException | The size exceeds the size of buffer. | 
| SocketException | An operating system error occurs while accessing the SecureSocket. | 
| ObjectDisposedException | The SecureSocket has been closed. | 
| SecurityException | An error occurred while decrypting the received data. | 
SecureSocket Class | SecureSocket Members | Org.Mentalis.Security.Ssl Namespace | SecureSocket.Receive Overload List