指定された型によって識別されるこのフィールドに定義されたすべてのカスタム属性を返します。
Overrides Overloads Public Function GetCustomAttributes( _
ByVal attributeType As Type, _ ByVal inherit As Boolean _) As Object() Implements ICustomAttributeProvider.GetCustomAttributes
[C#]
public override object[] GetCustomAttributes(TypeattributeType,boolinherit);
[C++]
public: Object* GetCustomAttributes(Type* attributeType,boolinherit) __gc[];
[JScript]
public override function GetCustomAttributes(
attributeType : Type,inherit : Boolean) : Object[];
パラメータ
- attributeType
カスタム属性の型。 - 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 オーバーロードの一覧