ICustomAttributeProvider Interface

Définition

Fournit des attributs personnalisés pour les objets de réflexion qui les prennent en charge.

public interface class ICustomAttributeProvider
public interface ICustomAttributeProvider
[System.Runtime.InteropServices.ComVisible(true)]
public interface ICustomAttributeProvider
type ICustomAttributeProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ICustomAttributeProvider = interface
Public Interface ICustomAttributeProvider
Dérivé
Attributs

Remarques

Presque toutes les classes Reflection peuvent avoir des attributs associés. Les attributs peuvent être standard (public, privé, HelpString) ou personnalisés.

Méthodes

Nom Description
GetCustomAttributes(Boolean)

Retourne un tableau de tous les attributs personnalisés définis sur ce membre, à l’exclusion des attributs nommés ou d’un tableau vide s’il n’existe aucun attribut personnalisé.

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’existe aucun attribut personnalisé de ce type.

IsDefined(Type, Boolean)

Indique si une ou plusieurs instances de attributeType ce membre sont définies.

S’applique à