how to add component with parametres

I must use gameobject.addcomponent but how with parametres in constructor