Name
MTAThreadAttribute
Synopsis
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 NotInheritable Class MTAThreadAttribute : Inherits Attribute ' Public Constructors Public Sub New() End Class
Hierarchy
Object→Attribute→ MTAThreadAttribute
Valid On
Method
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.