Mono Class Library: System Namespace

System.STAThreadAttribute Class

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

See Also: STAThreadAttribute Members

System.Object
     System.Attribute
          System.STAThreadAttribute

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

Remarks

For example:
C# Example

   [STAThread]
   static void Dingus () 
   {
   }
  
[Edit]

Requirements

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