ConventionBuilder.GetCustomAttributes Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| GetCustomAttributes(Type, MemberInfo) |
Récupère la liste des attributs personnalisés appliqués au membre spécifié du type spécifié. |
| GetCustomAttributes(Type, ParameterInfo) |
Récupère la liste des attributs personnalisés appliqués au paramètre spécifié du type spécifié. |
GetCustomAttributes(Type, MemberInfo)
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
Récupère la liste des attributs personnalisés appliqués au membre spécifié du type spécifié.
public:
override System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(Type ^ reflectedType, System::Reflection::MemberInfo ^ member);
public override System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(Type reflectedType, System.Reflection.MemberInfo member);
override this.GetCustomAttributes : Type * System.Reflection.MemberInfo -> seq<Attribute>
Public Overrides Function GetCustomAttributes (reflectedType As Type, member As MemberInfo) As IEnumerable(Of Attribute)
Paramètres
- reflectedType
- Type
Le type.
- member
- MemberInfo
Membre à inspecter.
Retours
Collection d’attributs personnalisés.
S’applique à
GetCustomAttributes(Type, ParameterInfo)
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
Récupère la liste des attributs personnalisés appliqués au paramètre spécifié du type spécifié.
public:
override System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(Type ^ reflectedType, System::Reflection::ParameterInfo ^ parameter);
public override System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(Type reflectedType, System.Reflection.ParameterInfo parameter);
override this.GetCustomAttributes : Type * System.Reflection.ParameterInfo -> seq<Attribute>
Public Overrides Function GetCustomAttributes (reflectedType As Type, parameter As ParameterInfo) As IEnumerable(Of Attribute)
Paramètres
- reflectedType
- Type
Le type.
- parameter
- ParameterInfo
Paramètre à inspecter.
Retours
Collection d’attributs personnalisés.