ערוך

שתף באמצעות


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