Ends a pending asynchronous read request.
[Visual Basic] Overridable Public Function EndRead( _ ByVal asyncResult As IAsyncResult _ ) As Integer [C#] public virtual int EndRead( IAsyncResult asyncResult ); [C++] public: virtual int EndRead( IAsyncResult* asyncResult ); [JScript] public function EndRead( asyncResult : IAsyncResult ) : int;
The number of bytes read or 0 if none were read.
Exception Type | Condition |
---|---|
ArgumentNullException | asyncResult is null. |
EndRead will block until the IO operation has completed.