Sets the length of the current stream.
void set_Length(__int64 value)
void SetLength(__int64 value)
void SetLength(long value)
Sub SetLength(ByVal value As Long)
void setLength(long value)
Use this method to set the new length of current stream.
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.
Use CanWrite and CanSeek properties to determine whether writing and seeking are supported.