CodeTypeDeclaration.TypeAttributes プロパティ
アセンブリ: System (system.dll 内)

Dim instance As CodeTypeDeclaration Dim value As TypeAttributes value = instance.TypeAttributes instance.TypeAttributes = value
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 プロパティのフラグの代わりに使用します。 |

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCodeTypeDeclaration.TypeAttributes プロパティを検索する場合は、下記のリンクをクリックしてください。

- CodeTypeDeclaration.TypeAttributes プロパティのページへのリンク