System.Net.FileWebRequest.BeginGetRequestStream Method

Begins an asynchronous request for a System.IO.Stream object to use to write data.

Syntax

public override IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state)

Parameters

callback
The AsyncCallback delegate.
state
An object that contains state information for this request.

Returns

An IAsyncResult that references the asynchronous request.

Remarks

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.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0