Method SetLength SetLength(Int64) Sets the length of the stream. Declaration public override void SetLength(long value) Parameters Type Name Description System.Int64 value The desired length of the current stream in bytes.