HttpRequestStreamReader.ReadAsync 方法

定义

重载

ReadAsync(Memory<Char>, CancellationToken)
ReadAsync(Char[], Int32, Int32)

ReadAsync(Memory<Char>, CancellationToken)

Source:
HttpRequestStreamReader.cs

将当前流中的字符异步读入内存块。

public override System.Threading.Tasks.ValueTask<int> ReadAsync (Memory<char> buffer, System.Threading.CancellationToken cancellationToken = default);
override this.ReadAsync : Memory<char> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
Public Overrides Function ReadAsync (buffer As Memory(Of Char), Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)

参数

buffer
Memory<Char>
cancellationToken
CancellationToken

返回

适用于

ReadAsync(Char[], Int32, Int32)

Source:
HttpRequestStreamReader.cs
Source:
HttpRequestStreamReader.cs
Source:
HttpRequestStreamReader.cs

异步从当前文本读取器中读取指定最大字符数并从指定索引开始将该数据写入缓冲区。

public:
 override System::Threading::Tasks::Task<int> ^ ReadAsync(cli::array <char> ^ buffer, int index, int count);
public override System.Threading.Tasks.Task<int> ReadAsync (char[] buffer, int index, int count);
override this.ReadAsync : char[] * int * int -> System.Threading.Tasks.Task<int>
Public Overrides Function ReadAsync (buffer As Char(), index As Integer, count As Integer) As Task(Of Integer)

参数

buffer
Char[]
index
Int32
count
Int32

返回

适用于