Ends an asynchronous request for a System.IO.Stream instance that the application uses to write data.
- asyncResult
- An IAsyncResult that references the pending request for a stream.
A System.IO.Stream object that the application uses to write data.
The FileWebRequest.EndGetRequestStream(IAsyncResult) method completes an asynchronous stream request that was started by the FileWebRequest.BeginGetRequestStream(AsyncCallback, object) method.
To avoid timing issues with garbage collection, be sure to close the response stream by calling the System.IO.Stream.Close method on the stream returned by the FileWebResponse.GetResponseStream method after calling the FileWebRequest.EndGetResponse(IAsyncResult) method.