_Assembly.GetCustomAttributes Méthode

Définition

Fournit aux objets COM un accès indépendant de la GetCustomAttributes version aux méthodes.

Surcharges

Nom Description
GetCustomAttributes(Type, Boolean)

Fournit aux objets COM un accès indépendant de la version à la GetCustomAttributes(Type, Boolean) méthode.

GetCustomAttributes(Boolean)

Fournit aux objets COM un accès indépendant de la version à la GetCustomAttributes(Boolean) méthode.

Remarques

Cette méthode permet d’accéder aux classes managées à partir de code non managé et ne doit pas être appelée à partir du code managé.

Les GetCustomAttributes méthodes obtiennent les attributs personnalisés pour cet assembly.

GetCustomAttributes(Type, Boolean)

Fournit aux objets COM un accès indépendant de la version à la GetCustomAttributes(Type, Boolean) méthode.

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

Paramètres

attributeType
Type

Pour Type lequel les attributs personnalisés doivent être retournés.

inherit
Boolean

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

Retours

Object[]

Tableau de type Object contenant les attributs personnalisés pour cet assembly, comme spécifié par attributeType.

Remarques

Cette méthode permet d’accéder aux classes managées à partir de code non managé et ne doit pas être appelée à partir du code managé.

La GetCustomAttributes méthode obtient tous les attributs personnalisés pour cet assembly.

Voir aussi

S’applique à

GetCustomAttributes(Boolean)

Fournit aux objets COM un accès indépendant de la version à la GetCustomAttributes(Boolean) méthode.

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

Paramètres

inherit
Boolean

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

Retours

Object[]

Tableau de type Object contenant les attributs personnalisés pour cet assembly.

Remarques

Cette méthode permet d’accéder aux classes managées à partir de code non managé et ne doit pas être appelée à partir du code managé.

La GetCustomAttributes méthode obtient tous les attributs personnalisés pour cet assembly.

Voir aussi

S’applique à