Sets the length of the stream. This method always throws a NotSupportedException.
Type Reason NotSupportedException Any call to this method.
The System.IO.Stream base class uses this method to set the length of the data available on the stream. This functionality is not supported in the System.Net.Sockets.NetworkStream class.
This method overrides System.IO.Stream.SetLength(long).