Cuemon .NET Framework
EndRead Method

The reference to the pending asynchronous request to finish.
Waits for the pending asynchronous read to complete.
Public Overrides Function EndRead( _
   ByVal asyncResult As IAsyncResult _
) As Integer
public override int EndRead( 
   IAsyncResult asyncResult


The reference to the pending asynchronous request to finish.

Return Value

The number of bytes read from the stream, between zero (0) and the number of bytes you requested. Streams return zero (0) only at the end of the stream, otherwise, they should block until at least one byte is available.
System.ArgumentNullExceptionasyncResult is null.
System.ArgumentExceptionasyncResult did not originate from a System.IO.Stream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object) method on the current stream.
System.IO.IOException The stream is closed or an internal error has occurred.

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


HttpResponseFilter Class
HttpResponseFilter Members
Base Implementation in EndRead



| Cuemon is licensed under a The MIT License (MIT)

© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback