CustomReflectionContext.GetCustomAttributes Méthode

Définition

En cas de substitution dans une classe dérivée, fournit une collection modifiée d'attributs personnalisés pour l'objet spécifié, comme représenté dans ce contexte de réflexion.

Surcharges

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

En cas de substitution dans une classe dérivée, fournit une liste d'attributs personnalisés pour le membre spécifié, comme représenté dans ce contexte de réflexion.

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

En cas de substitution dans une classe dérivée, fournit une liste d’attributs personnalisés pour le paramètre spécifié, comme représenté dans ce contexte de réflexion.

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs

En cas de substitution dans une classe dérivée, fournit une liste d'attributs personnalisés pour le membre spécifié, comme représenté dans ce contexte de réflexion.

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)

Paramètres

member
MemberInfo

Membre dont les attributs personnalisés seront retournés.

declaredAttributes
IEnumerable<Object>

Collection des attributs du membre dans son contexte actuel.

Retours

Collection qui représente les attributs personnalisés du membre spécifié dans ce contexte de réflexion.

S’applique à

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs

En cas de substitution dans une classe dérivée, fournit une liste d’attributs personnalisés pour le paramètre spécifié, comme représenté dans ce contexte de réflexion.

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)

Paramètres

parameter
ParameterInfo

Paramètre dont les attributs personnalisés seront retournés.

declaredAttributes
IEnumerable<Object>

Collection des attributs de paramètre dans son contexte actuel.

Retours

Collection qui représente les attributs personnalisés du paramètre spécifié dans ce contexte de réflexion.

S’applique à