System.Net.WebRequest.GetRequestStreamAsync Method

When overridden in a descendant class, returns a System.IO.Stream for writing data to the Internet resource as an asynchronous operation.

Syntax

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetRequestStreamAsync ()

Returns

Returns System.Threading.Tasks.Task`1.

The task object representing the asynchronous operation.

Remarks

This operation will not block. The returned System.Threading.Tasks.Task`1object will complete when the System.IO.Stream for writing data to the Internet resource is available.

Requirements

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