WebRequest.EndGetRequestStream Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When overridden in a descendant class, returns a Stream for writing data to the Internet resource.
Assembly: System.Net (in System.Net.dll)
Parameters
- asyncResult
- Type: System.IAsyncResult
An IAsyncResult that references a pending request for a stream.
| Exception | Condition |
|---|---|
| NotImplementedException | Any attempt is made to access the method, when the method is not overridden in a descendant class. |
The EndGetRequestStream method completes an asynchronous stream request that was started by the BeginGetRequestStream method.
Note: |
|---|
To avoid timing issues with garbage collection, be sure to close the response stream by calling the Close method on the stream returned by GetResponseStream after calling EndGetResponse. |
Note: |
|---|
The WebRequest class is an abstract class. The actual behavior of a WebRequest instance at run time is determined by the descendant class returned by the WebRequest.Create method. For more information about default values and exceptions, see the documentation for the descendant classes, such as HttpWebRequest. |
Note: