grazie avevo trovato, basta usare il metodo ...Attributes.Add(Nometag,Valore)