MTAThreadAttribute

MTAThreadAttribute

System (mscorlib.dll) sealed class

This attribute is used entirely for COM interoperability in .NET; it has no effect on a pure .NET application or system.

This attribute can be used only on the Main method of the application. It sets the default threading model to MTA (multithreaded apartment). Alternatively, you can use the STAThreadAttribute attribute for a single-threaded apartment model.

 public sealed class  MTAThreadAttribute  : Attribute {  // Public Constructors  public  MTAThreadAttribute  ( ); } 

Hierarchy

Object Attribute MTAThreadAttribute

Valid On

Method



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net