ModuleBuilder.GetCustomAttributes Méthode

Définition

Retourne les attributs personnalisés appliqués au fichier actif ModuleBuilder.

Surcharges

Nom Description
GetCustomAttributes(Boolean)

Retourne tous les attributs personnalisés qui ont été appliqués à l’actuel ModuleBuilder.

GetCustomAttributes(Type, Boolean)

Retourne tous les attributs personnalisés qui ont été appliqués au type d’attribut actuel ModuleBuilderet qui dérivent d’un type d’attribut spécifié.

GetCustomAttributes(Boolean)

Source:
ModuleBuilder.cs

Retourne tous les attributs personnalisés qui ont été appliqués à l’actuel ModuleBuilder.

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

Paramètres

inherit
Boolean

Cet argument est ignoré pour les objets de ce type.

Retours

Object[]

Tableau qui contient les attributs personnalisés ; le tableau est vide s’il n’existe aucun attribut.

S’applique à

GetCustomAttributes(Type, Boolean)

Source:
ModuleBuilder.cs

Retourne tous les attributs personnalisés qui ont été appliqués au type d’attribut actuel ModuleBuilderet qui dérivent d’un type d’attribut spécifié.

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

Paramètres

attributeType
Type

Type de base à partir duquel dérivent les attributs.

inherit
Boolean

Cet argument est ignoré pour les objets de ce type.

Retours

Object[]

Tableau qui contient les attributs personnalisés dérivés, à n’importe quel niveau, à partir duquel attributeTypele tableau est vide s’il n’y a pas d’attributs de ce type.

Exceptions

attributeType a la valeur null.

attributeType n’est pas un Type objet fourni par le runtime. Par exemple, attributeType est un TypeBuilder objet.

S’applique à