次の方法で共有


ParameterInfo.GetCustomAttributes メソッド (Type, Boolean)

このパラメータに定義されている指定された型のカスタム属性を取得します。

Overloads Public Overridable Function GetCustomAttributes( _
   ByVal attributeType As Type, _   ByVal inherit As Boolean _) As Object() Implements ICustomAttributeProvider.GetCustomAttributes
[C#]
public virtual object[] GetCustomAttributes(TypeattributeType,boolinherit);
[C++]
public: virtual Object* GetCustomAttributes(Type* attributeType,boolinherit)  __gc[];
[JScript]
public function GetCustomAttributes(
   attributeType : Type,inherit : Boolean) : Object[];

パラメータ

  • attributeType
    型により識別されるカスタム属性。
  • inherit
    この型のオブジェクトでは、この引数は無視されます。

戻り値

指定された型のカスタム属性を格納しているオブジェクト型の配列。

実装

ICustomAttributeProvider.GetCustomAttributes

必要条件

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

参照

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