Stream.Null Stream.Null Stream.Null Stream.Null Field

定义

无后备存储区的 StreamA Stream with no backing store.

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 

字段值

注解

使用Null输出重定向到一个流,它不会使用任何操作系统资源。Use Null to redirect output to a stream that will not consume any operating system resources. 时的方法Stream的调用提供写入的上Null、 调用只返回,而不写入任何数据。When the methods of Stream that provide writing are invoked on Null, the call simply returns, and no data is written. Null 此外实现Read返回零,而无需读取数据的方法。Null also implements a Read method that returns zero without reading data.

适用于

另请参阅