CustomReflectionContext.GetCustomAttributes メソッド

定義

派生クラスでオーバーライドされると、このリフレクション コンテキストで表されるように、指定されたオブジェクトのカスタム属性の変更されたコレクションを提供します。

オーバーロード

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

派生クラスでオーバーライドされると、このリフレクション コンテキストで表されるように、指定されたメンバーのカスタム属性の一覧を提供します。

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

派生クラスでオーバーライドされると、このリフレクション コンテキストで表されるように、指定されたパラメーターのカスタム属性の一覧を提供します。

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

ソース:
CustomReflectionContext.cs
ソース:
CustomReflectionContext.cs
ソース:
CustomReflectionContext.cs

派生クラスでオーバーライドされると、このリフレクション コンテキストで表されるように、指定されたメンバーのカスタム属性の一覧を提供します。

protected:
 virtual System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ member, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected virtual System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.MemberInfo member, System.Collections.Generic.IEnumerable<object> declaredAttributes);
abstract member GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
override this.GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
Protected Overridable Function GetCustomAttributes (member As MemberInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)

パラメーター

member
MemberInfo

カスタム属性を返す対象のメンバー。

declaredAttributes
IEnumerable<Object>

現在のコンテキストにあるメンバーの属性のコレクション。

戻り値

このリフレクション コンテキストの指定されたメンバーのカスタム属性を表すコレクション。

適用対象

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

ソース:
CustomReflectionContext.cs
ソース:
CustomReflectionContext.cs
ソース:
CustomReflectionContext.cs

派生クラスでオーバーライドされると、このリフレクション コンテキストで表されるように、指定されたパラメーターのカスタム属性の一覧を提供します。

protected:
 virtual System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ parameter, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected virtual System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.ParameterInfo parameter, System.Collections.Generic.IEnumerable<object> declaredAttributes);
abstract member GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
override this.GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
Protected Overridable Function GetCustomAttributes (parameter As ParameterInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)

パラメーター

parameter
ParameterInfo

カスタム属性が返されるパラメーター。

declaredAttributes
IEnumerable<Object>

現在のコンテキストにあるパラメーターの属性のコレクション。

戻り値

このリフレクション コンテキストの指定されたパラメーターのカスタム属性を表すコレクション。

適用対象