When overridden in a derived class, sets the length of the current stream.
Assembly: mscorlib (in mscorlib.dll)
If the specified value is less than the current length of the stream, the stream is truncated. If the specified value is larger than the current length of the stream, the stream is expanded. If the stream is expanded, the contents of the stream between the old and the new length are not defined.
A stream must support both writing and seeking for SetLength to work.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.