This attribute is used to flag the method as using the Single Threaded Apartment model.
See Also:
STAThreadAttribute Members
Syntax
[System.AttributeUsage(System.AttributeTargets.Method)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class
STAThreadAttribute :
AttributeRemarks
Requirements
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0