Provides a repository that can be written to, but not read from. Use Null to redirect output to a stream that will not consume any operating system resources.
[Visual Basic] Public Shared ReadOnly Null As Stream [C#] public static readonly Stream Null; [C++] public: static readonly Stream* Null; [JScript] public static var Null : Stream;
When the methods of Stream that provide writing are invoked on Null, the call simply returns, and no data is actually written to an underlying data source or repository. Null also implements a Read method that returns zero, without actually reading data from an underlying data source or repository.