Ends an asynchronous read operation started with a previous call to SslStream.BeginRead(Byte[], int, int, AsyncCallback, object).
- asyncResult
- An IAsyncResult instance returned by a call to SslStream.BeginRead(Byte[], int, int, AsyncCallback, object)
A int value that specifies the number of bytes read from the underlying stream.
If the operation has not completed, this method blocks until it does.
To perform this operation synchronously, use the SslStream.Read(Byte[], int, int) method.
You cannot call this method until you have successfully authenticated. To authenticate call one of the erload:System.Net.Security.SslStream.AuthenticateAsClient, or erload:System.Net.Security.SslStream.BeginAuthenticateAsClient, erload:System.Net.Security.SslStream.AuthenticateAsServer, erload:System.Net.Security.SslStream.BeginAuthenticateAsServer methods.