NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Stream.Null

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;

Remarks

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.

See Also

Stream Class | Stream Members | System.IO Namespace