Begins an asynchronous request for a System.IO.Stream object to use to write data.
- callback
The AsyncCallback delegate.
- state
An object that contains state information for this request.
![]()
An IAsyncResult that references the asynchronous request.
The FileWebRequest.BeginGetRequestStream(AsyncCallback, object) method starts an asynchronous request for a stream used to send data to a file system resource. The callback method that implements the AsyncCallback delegate uses the FileWebRequest.EndGetRequestStream(IAsyncResult) method to return the request stream.