הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Indicates that the threading model for an application is single-threaded apartment (STA).
Syntax
public ref class STAThreadAttribute sealed : Attribute
Members
Public Constructors
| Name | Description |
|---|---|
| STAThreadAttribute constructor 1 | Initializes a new instance of the class. |
Public Methods
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. |
Inheritance Hierarchy
Platform
Requirements
Header: collection.h
Namespace: Platform
STAThreadAttribute constructor
Initializes a new instance of the STAThreadAttribute class.
Syntax
public:STAThreadAttribute();
STAThreadAttribute::Equals
Determines whether the specified object is equal to the current object.
Syntax
public:virtual override bool Equals( Object^ obj );
Parameters
obj
The object to compare.
Return Value
true if the objects are equal; otherwise, false.
STAThreadAttribute::GetHashCode
Returns the hash code for this instance.
Syntax
public:int GetHashCode();
Return Value
The hash code for this instance.
STAThreadAttribute::ToString
Returns a string that represents the current object.
Syntax
public:String^ ToString();
Return Value
A string that represents the current object.