Skip to content

Latest commit

 

History

History
113 lines (78 loc) · 2.71 KB

File metadata and controls

113 lines (78 loc) · 2.71 KB
title Platform::MTAThreadAttribute 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
VCCORLIB/Platform::MTAThreadAttribute::Equals
VCCORLIB/Platform::MTAThreadAttribute::GetHashCode
VCCORLIB/Platform::MTAThreadAttribute::ToString
dev_langs
C++
helpviewer_keywords
Platform::MTAThreadAttribute Class
ms.assetid bfc546a7-4333-4407-85b4-4721565e1f44
caps.latest.revision 4
author ghogen
ms.author ghogen
manager ghogen

Platform::MTAThreadAttribute Class

Indicates that the threading model for an application is multi-threaded apartment (MTA).

Syntax

public ref class MTAThreadAttribute sealed : Attribute  

Members

Public Constructors

Name Description
MTAThreadAttribute Constructor 1 constructor Initializes a new instance of the class.

Public Methods

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.

Inheritance Hierarchy

Platform

Requirements

Metadata: platform.winmd

Namespace: Platform

MTAThreadAttribute Constructor

Initializes a new instance of the MTAThreadAttribute class.

Syntax

public:MTAThreadAttribute()  

MTAThreadAttribute::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.

MTAThreadAttribute::GetHashCode

Returns the hash code for this instance.

Syntax

public:int GetHashCode()  

Return Value

The hash code for this instance.

MTAThreadAttribute::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