IFileInfo.CreateReadStream 方法

定義

以唯讀資料流形式傳回檔案內容。Return file contents as readonly stream. 完成時,呼叫者應該處置資料流。Caller should dispose stream when complete.

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

傳回

Stream

檔案資料流The file stream

適用於