ByteArrayContent.CreateContentReadStreamAsync 方法

定义

异步创建 HTTP 内容流,用于读取哪一个对象的后备存储是 ByteArrayContent 的内存。Creates an HTTP content stream as an asynchronous operation for reading whose backing store is memory from the ByteArrayContent.

protected:
 override System::Threading::Tasks::Task<System::IO::Stream ^> ^ CreateContentReadStreamAsync();
protected override System.Threading.Tasks.Task<System.IO.Stream> CreateContentReadStreamAsync ();
override this.CreateContentReadStreamAsync : unit -> System.Threading.Tasks.Task<System.IO.Stream>
Protected Overrides Function CreateContentReadStreamAsync () As Task(Of Stream)

返回

Task<Stream>

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

注解

此操作不会阻止。This operation will not block. Task<TResult>所有内容流都已创建后,返回的对象将完成。The returned Task<TResult> object will complete after all of the content stream has been created.

适用于