What are the limitations of a STA thread in compare to MTA threads?
If we make a thread STA like this: Thread.SetApartmentState(STA); then it cannot run code marked with [MTAThread] attribute. We have seen [STAThread] in windows and console applications but I have never seen code with [MTAThread] attribute and don't know which .NET libraries use this attribute. My question is what are the limitations of a thread with apartment state set to STA, in compare to threads with MTA apartment state (natural .NET threads) ? then it cannot run code marked with [MTAThread] attribute. That's not how it works. The apartment type is a property of a thread, not of a method.