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 に対して有効なフラグは、ClassInterfaceAbstractSealedPublic、NotPublic、NestedPublic、および NestedPrivate だけとなります

メモメモ

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

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



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



CodeTypeDeclaration.TypeAttributes プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS