CodeTypeDeclaration.TypeAttributes プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeTypeDeclaration.TypeAttributes プロパティの意味・解説 

CodeTypeDeclaration.TypeAttributes プロパティ

型の属性を取得または設定します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

Public Property TypeAttributes As
 TypeAttributes
Dim instance As CodeTypeDeclaration
Dim value As TypeAttributes

value = instance.TypeAttributes

instance.TypeAttributes = value
public TypeAttributes TypeAttributes { get;
 set; }
public:
property TypeAttributes TypeAttributes {
    TypeAttributes get ();
    void set (TypeAttributes value);
}
/** @property */
public TypeAttributes get_TypeAttributes ()

/** @property */
public void set_TypeAttributes (TypeAttributes
 value)
public function get TypeAttributes
 () : TypeAttributes

public function set TypeAttributes
 (value : TypeAttributes)

プロパティ値
型の属性を示す TypeAttributes オブジェクト。

解説解説

TypeAttributes プロパティには、実行時に型を調べるときに System.Reflection で使用する、同じ型の値が格納されます。これらのフラグの多くは、一部の言語の型宣言構文に対応していません。その結果、CodeTypeDeclaration に対して有効なフラグは、Class、Interface、Abstract、Sealed、Public、NotPublic、NestedPublic、および NestedPrivate だけとなります。

メモメモ

Abstract などの一部のフラグは、CodeTypeMember から継承された CodeTypeDeclaration の Attributes プロパティに含まれるフラグの意味と重複します。Attributes プロパティは、CodeTypeMember から継承される CodeTypeDeclaration クラスの副作用であるため、クラスを入れ子にできます。TypeAttributes プロパティのフラグは、Attributes プロパティのフラグの代わりに使用します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeTypeDeclaration クラス
CodeTypeDeclaration メンバ
System.CodeDom 名前空間
TypeAttributes



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

CodeTypeDeclaration.TypeAttributes プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CodeTypeDeclaration.TypeAttributes プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS