HttpRequestStreamReader.ReadAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReadAsync(Memory<Char>, CancellationToken) | |
ReadAsync(Char[], Int32, Int32) |
ReadAsync(Memory<Char>, CancellationToken)
- Source:
- HttpRequestStreamReader.cs
Asynchronously reads the characters from the current stream into a memory block.
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)
Parameters
- cancellationToken
- CancellationToken
Returns
Applies to
ReadAsync(Char[], Int32, Int32)
- Source:
- HttpRequestStreamReader.cs
- Source:
- HttpRequestStreamReader.cs
- Source:
- HttpRequestStreamReader.cs
Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index.
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)
Parameters
- buffer
- Char[]
- index
- Int32
- count
- Int32