Mono Class Library: System Namespace

System.MTAThreadAttribute Class

This attribute is used to flag the method as using the MultiThreaded Apartment model. [Edit]

See Also: MTAThreadAttribute Members

System.Object
     System.Attribute
          System.MTAThreadAttribute

[System.AttributeUsage(System.AttributeTargets.Method)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class MTAThreadAttribute : Attribute

Remarks

For example:
C# Example
   [MTAThread]
   static void DoFoo () 
   {
   }
  
[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0