'System.STAThreadAttribute' e 'System.MTAThreadAttribute' não podem ser aplicados ao mesmo método

Os System.STAThreadAttribute e System.MTAThreadAttribute atributos são mutuamente exclusivos.

ID de erro: BC31512

Para corrigir este erro

  1. Aplique uma ou System.MTAThreadAttribute System.STAThreadAttribute, mas não ambas.

Consulte também