| description | Learn more about: Platform::STAThreadAttribute Class | |||||
|---|---|---|---|---|---|---|
| title | Platform::STAThreadAttribute Class | |||||
| ms.date | 12/30/2016 | |||||
| ms.topic | reference | |||||
| f1_keywords |
|
|||||
| helpviewer_keywords |
|
|||||
| ms.assetid | f97960fc-e673-4d9e-910a-54c8415411c4 |
Indicates that the threading model for an application is single-threaded apartment (STA).
public ref class STAThreadAttribute sealed : Attribute
| Name | Description |
|---|---|
| STAThreadAttribute constructor 1 | Initializes a new instance of the class. |
The STAThreadAttribute attribute inherits from Platform::Object Class. STAThreadAttribute also overloads or has the following members:
| Name | Description |
|---|---|
| STAThreadAttribute::Equals | Determines whether the specified object is equal to the current object. |
| STAThreadAttribute::GetHashCode | Returns the hash code for this instance. |
| STAThreadAttribute::ToString | Returns a string that represents the current object. |
Platform
Header: collection.h
Namespace: Platform
Initializes a new instance of the STAThreadAttribute class.
public:STAThreadAttribute();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.