次の方法で共有


FieldBuilder.GetCustomAttributes メソッド (Boolean)

このフィールドに対して定義されているすべてのカスタム属性を返します。

Overrides Overloads Public Function GetCustomAttributes( _
   ByVal inherit As Boolean _) As Object() Implements ICustomAttributeProvider.GetCustomAttributes
[C#]
public override object[] GetCustomAttributes(boolinherit);
[C++]
public: Object* GetCustomAttributes(boolinherit)  __gc[];
[JScript]
public override function GetCustomAttributes(
   inherit : Boolean) : Object[];

パラメータ

  • inherit
    基本クラスからのカスタム属性の継承を制御します。

戻り値

この FieldBuilder インスタンスで表されるコンストラクタのすべてのカスタム属性を表す Object 型の配列。

実装

ICustomAttributeProvider.GetCustomAttributes

例外

例外の種類 条件
NotSupportedException このメソッドはサポートされていません。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

FieldBuilder クラス | FieldBuilder メンバ | System.Reflection.Emit 名前空間 | FieldBuilder.GetCustomAttributes オーバーロードの一覧