| description | Learn more about: Platform::MTAThreadAttribute Class | |||
|---|---|---|---|---|
| title | Platform::MTAThreadAttribute Class | |||
| ms.date | 12/30/2016 | |||
| ms.topic | reference | |||
| f1_keywords |
|
|||
| helpviewer_keywords |
|
|||
| ms.assetid | bfc546a7-4333-4407-85b4-4721565e1f44 |
Indicates that the threading model for an application is multi-threaded apartment (MTA).
public ref class MTAThreadAttribute sealed : Attribute
| Name | Description |
|---|---|
| MTAThreadAttribute Constructor 1 constructor | Initializes a new instance of the class. |
The MTAThreadAttribute attribute inherits from Platform::Object Class. MTAThreadAttribute also overloads or has the following members:
| Name | Description |
|---|---|
| MTAThreadAttribute::Equals | Determines whether the specified object is equal to the current object. |
| MTAThreadAttribute::GetHashCode | Returns the hash code for this instance. |
| MTAThreadAttribute::ToString | Returns a string that represents the current object. |
Platform
Metadata: platform.winmd
Namespace: Platform
Initializes a new instance of the MTAThreadAttribute class.
public:MTAThreadAttribute();Determines whether the specified object is equal to the current object.
public:virtual override bool Equals( Object^ obj );obj
The object to compare.
true if the objects are equal; otherwise, false.
Returns the hash code for this instance.
public:int GetHashCode();The hash code for this instance.
Returns a string that represents the current object.
public:String^ ToString();A string that represents the current object.