Completes an asynchronous request for a stream that was started by the HttpWebRequest.BeginGetRequestStream(AsyncCallback, object) method.
- asyncResult
- The IAsyncResult object that holds the state information for the asynchronous operation.
A System.IO.Stream to write request data to.
Type Reason ArgumentNullException asyncResult is null. ArgumentException asyncResult was not returned by the current instance from a call to WebRequest.BeginGetRequestStream(AsyncCallback, object). InvalidOperationException This method was called previously using asyncResult.
-or-
No stream is available.
System.Net.WebException HttpWebRequest.Abort was previously called.
-or-
An error occurred while processing the request.
Note:The caller is responsible for calling the System.IO.Stream.Close method to close the stream.
This method overrides WebRequest.EndGetRequestStream(IAsyncResult).
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0