We investigate the thermodynamic properties of an ideal charged Bose gas confined in an anisotropic harmonic potential and a constant magnetic field. Using an accurate density of states, we calculate analytically the thermodynamic potential and consequently various intriguing thermodynamic properties, including the Bose-Einstein transition temperature, the specific heat, magnetization, and the corrections to these quantities due to the finite number of particles are also given explicitly. In contrast to the infinite number of particles scenarios, we show that those thermodynamic properties, particularly the Bose-Einstein transition temperature depends upon the strength of the magnetic field due to the finiteness of the particle numbers, and the collective effects of a finite number of particles become larger when the particle number decreases. Moreover, the magnetization varies with the temperature due to the finiteness of the particle number while it keeps invariant in the thermodynamic limit N -> infinity.