次の方法で共有


TypeDelegator.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
    この型の継承チェインを検索して属性を見つけるかどうかを指定します。

戻り値

この型に定義されているすべてのカスタム属性を格納しているオブジェクトの配列。

実装

ICustomAttributeProvider.GetCustomAttributes

例外

例外の種類 条件
ReflectionTypeLoadException カスタム属性の型を読み込むことができません。

必要条件

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

参照

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