Platform::STAThreadAttribute クラス

アプリケーションのスレッド モデルがシングル スレッド アパートメント (STA) であることを示します。

構文

public ref class STAThreadAttribute sealed : Attribute

メンバー

パブリック コンストラクター

名前 説明
STAThreadAttribute コンストラクター 1 クラスの新しいインスタンスを初期化します。

パブリック メソッド

STAThreadAttribute 属性は、Platform::Object Class から継承されます。 また STAThreadAttribute は次のメンバーもオーバーロードしたり、含んだりします。

名前 説明
STAThreadAttribute::Equals 指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。
STAThreadAttribute::GetHashCode この インスタンスのハッシュ コードを返します。
STAThreadAttribute::ToString 現在の オブジェクトを表す文字列を返します。

継承階層

Platform

必要条件

ヘッダー: collection.h

名前空間: Platform

STAThreadAttribute コンストラクター

STAThreadAttribute クラスの新しいインスタンスを初期化します。

構文

public:STAThreadAttribute();

STAThreadAttribute::Equals

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

構文

public:virtual override bool Equals( Object^ obj );

パラメーター

obj
比較するオブジェクト。

戻り値

オブジェクトが等しい場合は true。それ以外の場合は false

STAThreadAttribute::GetHashCode

この インスタンスのハッシュ コードを返します。

構文

public:int GetHashCode();

戻り値

この インスタンスのハッシュ コード。

STAThreadAttribute::ToString

現在の オブジェクトを表す文字列を返します。

構文

public:String^ ToString();

戻り値

現在の オブジェクトを表す文字列。

関連項目

プラットフォーム名前空間