Share via


MTAThreadAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Indicates that the COM threading model for an application is multithreaded apartment (MTA).

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .Attribute
    System..::..MTAThreadAttribute

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Method)> _
Public NotInheritable Class MTAThreadAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Method)]
public sealed class MTAThreadAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method)]
public ref class MTAThreadAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Method)>]
type MTAThreadAttribute =  
    class
        inherit Attribute
    end
public final class MTAThreadAttribute extends Attribute

The MTAThreadAttribute type exposes the following members.

Constructors

  Name Description
Public method MTAThreadAttribute Initializes a new instance of the MTAThreadAttribute class.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System Namespace