TextReader.ReadToEndAsync メソッド
定義
テキスト リーダーの現在位置から末尾まですべての文字を非同期的に読み取り、1 つの文字列として返します。Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string.
public:
virtual System::Threading::Tasks::Task<System::String ^> ^ ReadToEndAsync();
public virtual System.Threading.Tasks.Task<string> ReadToEndAsync ();
[System.Runtime.InteropServices.ComVisible(false)]
public virtual System.Threading.Tasks.Task<string> ReadToEndAsync ();
abstract member ReadToEndAsync : unit -> System.Threading.Tasks.Task<string>
override this.ReadToEndAsync : unit -> System.Threading.Tasks.Task<string>
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member ReadToEndAsync : unit -> System.Threading.Tasks.Task<string>
override this.ReadToEndAsync : unit -> System.Threading.Tasks.Task<string>
Public Overridable Function ReadToEndAsync () As Task(Of String)
戻り値
非同期の読み取り操作を表すタスク。A task that represents the asynchronous read operation. TResult
パラメーターの値には、現在位置からテキスト リーダーの末尾までの文字から成る文字列が含まれます。The value of the TResult
parameter contains a string with the characters from the current position to the end of the text reader.
- 属性
例外
テキスト リーダーは破棄されています。The text reader has been disposed.
リーダーは、前の読み取り操作によって現在使用されています。The reader is currently in use by a previous read operation.
注釈
TextReader クラスは抽象クラスです。The TextReader class is an abstract class. そのため、コードでそれをインスタンス化することはありません。Therefore, you do not instantiate it in your code. メソッドの使用例については、 ReadToEndAsync メソッドを参照してください StreamReader.ReadToEndAsync 。For an example of using the ReadToEndAsync method, see the StreamReader.ReadToEndAsync method.