BufferedReadStream.ReadLineAsync(Int32, CancellationToken) 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.
Reads a line. A line is defined as a sequence of characters followed by a carriage return immediately followed by a line feed. The resulting string does not contain the terminating carriage return and line feed.
public:
System::Threading::Tasks::Task<System::String ^> ^ ReadLineAsync(int lengthLimit, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> ReadLineAsync (int lengthLimit, System.Threading.CancellationToken cancellationToken);
member this.ReadLineAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function ReadLineAsync (lengthLimit As Integer, cancellationToken As CancellationToken) As Task(Of String)
Parameters
- lengthLimit
- Int32
Maximum allowed line length.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A line.