Lire en anglais

Partager via


MemberInfo.ICustomAttributeProvider.GetCustomAttributes Méthode

Définition

Surcharges

ICustomAttributeProvider.GetCustomAttributes(Boolean)

Retourne un tableau de tous les attributs personnalisés définis sur ce membre, en dehors des attributs nommés, ou un tableau vide s’il n’y a aucun attribut personnalisé.

ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

Retourne un tableau d’attributs personnalisés définis sur ce membre, identifiés par type, ou un tableau vide s’il n’y a aucun attribut personnalisé de ce type.

ICustomAttributeProvider.GetCustomAttributes(Boolean)

Retourne un tableau de tous les attributs personnalisés définis sur ce membre, en dehors des attributs nommés, ou un tableau vide s’il n’y a aucun attribut personnalisé.

C#
object[] ICustomAttributeProvider.GetCustomAttributes (bool inherit);

Paramètres

inherit
Boolean

Si true, recherchez la chaîne de hiérarchie pour l’attribut personnalisé hérité.

Retours

Object[]

Un tableau d’objets représentant des attributs personnalisés ou un tableau vide.

Implémente

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

Retourne un tableau d’attributs personnalisés définis sur ce membre, identifiés par type, ou un tableau vide s’il n’y a aucun attribut personnalisé de ce type.

C#
object[] ICustomAttributeProvider.GetCustomAttributes (Type attributeType, bool inherit);

Paramètres

attributeType
Type

Type des attributs personnalisés.

inherit
Boolean

Si true, recherchez la chaîne de hiérarchie pour l’attribut personnalisé hérité.

Retours

Object[]

Un tableau d’objets représentant des attributs personnalisés ou un tableau vide.

Implémente

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6