Mentalis.org Security Library documentation

SecureNetworkStream.EndRead Method 

Handles the end of an asynchronous read.

[Visual Basic]
Overrides Public Function EndRead( _
   ByVal asyncResult As IAsyncResult _
) As Integer
[C#]
public override int EndRead(
   IAsyncResult asyncResult
);

Parameters

asyncResult
An IAsyncResult representing an asynchronous call.

Return Value

The number of bytes read from the stream.

Exceptions

Exception TypeCondition
ArgumentNullExceptionasyncResult is a null reference (Nothing in Visual Basic).
IOExceptionThere is a failure while reading from the network.

See Also

SecureNetworkStream Class | SecureNetworkStream Members | Org.Mentalis.Security.Ssl Namespace