Skip to content

Latest commit

 

History

History
115 lines (78 loc) · 2.83 KB

File metadata and controls

115 lines (78 loc) · 2.83 KB
title Platform::STAThreadAttribute Class | Microsoft Docs
ms.custom
ms.date 12/30/2016
ms.technology cpp-windows
ms.reviewer
ms.suite
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
COLLECTION/Platform::Platform
COLLECTION/Platform::Platform::STAThreadAttribute constructor 1
COLLECTION/Platform::Platform::STAThreadAttribute::Equals
COLLECTION/Platform::Platform::STAThreadAttribute::GetHashCode
COLLECTION/Platform::Platform::STAThreadAttribute::ToString
dev_langs
C++
helpviewer_keywords
Platform::STAThreadAttribute Class
ms.assetid f97960fc-e673-4d9e-910a-54c8415411c4
caps.latest.revision 3
author ghogen
ms.author ghogen
manager ghogen

Platform::STAThreadAttribute Class

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.

See Also

Platform Namespace