Assembly : mscorlib (dans mscorlib.dll)
SyntaxePublic MustOverride Function GetCustomAttributes ( _ attributeType As Type, _ inherit As Boolean _ ) As Object()
Dim instance As MemberInfo Dim attributeType As Type Dim inherit As Boolean Dim returnValue As Object() returnValue = instance.GetCustomAttributes(attributeType, inherit)
public abstract Object[] GetCustomAttributes ( Type attributeType, bool inherit )
public: virtual array<Object^>^ GetCustomAttributes ( Type^ attributeType, bool inherit ) abstract
public abstract Object[] GetCustomAttributes (
Type attributeType,
boolean inherit
)
public abstract function GetCustomAttributes ( attributeType : Type, inherit : boolean ) : Object[]
Paramètres
- attributeType
Type de l'attribut à rechercher. Seuls les attributs pouvant être assignés à ce type sont retournés.
- inherit
Spécifie s'il faut rechercher les attributs dans la chaîne d'héritage de ce membre.
Valeur de retour
Tableau d'attributs personnalisés appliqués à ce membre ou tableau contenant 0 (zéro) élément si aucun attribut n'a été appliqué.
Exceptions| Type d'exception | Condition |
|---|---|
| Le type d'attribut personnalisé ne peut pas être chargé. | |
| Si attributeType est référence Null (Nothing en Visual Basic). |
Plates-formesWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile pour Pocket PC, Windows Mobile pour Smartphone, Windows Server 2003, Windows XP Édition Media Center, Windows XP Professionnel Édition x64, Windows XP SP2, Windows XP Starter Edition
Le .NET Framework ne prend pas en charge toutes les versions de chaque plate-forme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise.
Informations de version
Outils (masquer)
S'enregistrer
Liste des Membres
Qui est en ligne?
FAQ