Alter particles velocity

I'm trying to alter the velocity of the existing particles in an emitter by using the following.

ParticleEmitter emitter = shrapnelSS.getEmitter();

foreach(Particle particle in emitter.particles)
{

     particle.velocity = Vector3.down * moveAmount;

}

But I'm getting the following error.

Cannot assign to members of `particle' because it is a `foreach iteration variable'

Why can't I edit it? Also is there a better way to do this?

ParticleEmitter.particles returns an array of the particles. According to the docs, you need to store ParticleEmitter.particles into a variable, modify that variable, then set this variable to ParticleEmitters.particles. I would recommend reading the docs for more info:

file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/ParticleEmitter-particles.html