FileWebRequest.GetRequestStreamAsync FileWebRequest.GetRequestStreamAsync FileWebRequest.GetRequestStreamAsync FileWebRequest.GetRequestStreamAsync Method

定义

返回一个流,该流用于将数据写入文件系统资源(以异步操作形式)。Returns a stream for writing data to the file system resource as an asynchronous operation.

public:
 override System::Threading::Tasks::Task<System::IO::Stream ^> ^ GetRequestStreamAsync();
public override System.Threading.Tasks.Task<System.IO.Stream> GetRequestStreamAsync ();
override this.GetRequestStreamAsync : unit -> System.Threading.Tasks.Task<System.IO.Stream>
Public Overrides Function GetRequestStreamAsync () As Task(Of Stream)

返回

表示异步操作的任务对象。The task object representing the asynchronous operation.

异常

流正由上一个 BeginGetRequestStream(AsyncCallback, Object) 调用使用。The stream is being used by a previous call to BeginGetRequestStream(AsyncCallback, Object).

-or-

流已经收到请求之前的响应。The stream already received a response previous to your request.

注解

备注

对于异步请求, 客户端应用程序负责实现自己的超时机制。In the case of asynchronous requests, the client application is responsible for implementing its own time-out mechanism.

适用于