Stream.Null 欄位

定義

沒有底層存放區的 Stream

public: static initonly System::IO::Stream ^ Null;
public static readonly System.IO.Stream Null;
 staticval mutable Null : System.IO.Stream
Public Shared ReadOnly Null As Stream 

欄位值

Stream

備註

Null 來將輸出重新導向至不會使用任何作業系統資源的資料流程。 在 Stream 上叫用提供寫入的方法時 Null ,呼叫只會傳回,而且不會寫入任何資料。 Null 也會在 Read 不讀取資料的情況下,執行傳回零的方法。

適用於

另請參閱