'System.STAThreadAttribute' e 'System.MTAThreadAttribute' non possono essere applicati entrambi allo stesso metodo

Gli attributi System.STAThreadAttribute e System.MTAThreadAttribute si escludono reciprocamente.

ID errore: BC31512

Per correggere l'errore

  1. Applicare System.MTAThreadAttribute o System.STAThreadAttribute, ma non entrambi.

Vedi anche