"System.STAThreadAttribute" i "System.MTAThreadAttribute" nie mogą być stosowane do tej samej metody

Atrybuty System.STAThreadAttribute i System.MTAThreadAttribute wzajemnie się wykluczają.

Identyfikator błędu: BC31512

Aby poprawić ten błąd

  1. Zastosuj wartość System.MTAThreadAttribute lub System.STAThreadAttribute, ale nie obie.

Zobacz też