'System.STAThreadAttribute' y 'System.MTAThreadAttribute' no se pueden aplicar a la vez al mismo método

Los atributos System.STAThreadAttribute y System.MTAThreadAttribute son mutuamente excluyentes.

Identificador de error: BC31512

Para corregir este error

  1. Aplique System.MTAThreadAttribute o System.STAThreadAttribute, pero no ambos.

Consulte también