AssemblyBuilder.GetCustomAttributes Méthode

Définition

Retourne des attributs personnalisés qui ont été appliqués à l’actuel AssemblyBuilder.

Surcharges

Nom Description
GetCustomAttributes(Type, Boolean)

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

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

Source:
AssemblyBuilder.cs

Retourne tous les attributs personnalisés qui ont été appliqués au type d’attribut actuel AssemblyBuilderet 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 ; 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 à

GetCustomAttributes(Boolean)

Source:
AssemblyBuilder.cs

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

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 à