NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Stream.EndRead

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;

Parameters

asyncResult
The reference to the pending asynchronous request to be ended.

Return Value

The number of bytes read or 0 if none were read.

Exceptions

Exception Type Condition
ArgumentNullException asyncResult is null.

Remarks

EndRead will block until the IO operation has completed.

See Also

Stream Class | Stream Members | System.IO Namespace