JSMethodInfo.GetCustomAttributes Méthode

Définition

Retourne un tableau qui contient les attributs personnalisés attachés à cette méthode.

Surcharges

GetCustomAttributes(Boolean)

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

Retourne un tableau qui contient les attributs personnalisés attachés à cette méthode.

GetCustomAttributes(Type, Boolean)

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

Retourne un tableau qui contient les attributs personnalisés attachés à cette méthode, en recherchant uniquement les attributs du type spécifié.

GetCustomAttributes(Boolean)

Retourne un tableau qui contient les attributs personnalisés attachés à cette méthode.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override sealed object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides NotOverridable Function GetCustomAttributes (inherit As Boolean) As Object()

Paramètres

inherit
Boolean

true pour rechercher les attributs dans la hiérarchie d'héritage de ce membre.

Retours

Object[]

Tableau qui contient les attributs personnalisés attachés à cette méthode ou, s'il n'y en a pas, tableau qui ne comprend aucun élément.

Voir aussi

S’applique à

GetCustomAttributes(Type, Boolean)

Retourne un tableau qui contient les attributs personnalisés attachés à cette méthode, en recherchant uniquement les attributs du type spécifié.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ type, bool inherit);
public override sealed object[] GetCustomAttributes (Type type, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides NotOverridable Function GetCustomAttributes (type As Type, inherit As Boolean) As Object()

Paramètres

type
Type

Type d’attribut à rechercher.

inherit
Boolean

true pour rechercher les attributs dans la hiérarchie d'héritage de ce membre.

Retours

Object[]

Tableau qui contient les attributs personnalisés attachés à cette méthode ou, s'il n'y en a pas, tableau qui ne comprend aucun élément.

Voir aussi

S’applique à