添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

ReadAsStringAsync(Stream)

Reads the contents of stream from it's current point to the end and returns the result as a string.

Declaration
public static Task<string> ReadAsStringAsync(this Stream stream)
Parameters
Description
Remarks

This overload uses the System.Text.UTF8Encoding to convert the stream contents into a string.

Exceptions
Condition

ReadAsStringAsync(Stream, Encoding)

Reads the contents of stream from it's current point to the end and returns the result as a string.

Declaration
public static Task<string> ReadAsStringAsync(Stream stream, Encoding encoding)
Parameters
Description