PhysicalFileInfo.CreateReadStream 方法

定义

以只读流的形式返回文件内容。

public:
 virtual System::IO::Stream ^ CreateReadStream();
public System.IO.Stream CreateReadStream ();
abstract member CreateReadStream : unit -> System.IO.Stream
override this.CreateReadStream : unit -> System.IO.Stream
Public Function CreateReadStream () As Stream

返回

一个只读流。

实现

注解

调用方在处理完流时应释放该流。

适用于