BufferedReadStream.ReadLineAsync(Int32, CancellationToken) 方法

定义

读取行。 行定义为一系列字符,后跟回车符,紧跟换行符。 生成的字符串不包含终止回车符和换行符。

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)

参数

lengthLimit
Int32

允许的最大行长度。

cancellationToken
CancellationToken

取消标记。

返回

一行。

适用于