_Assembly.GetCustomAttributes Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Retours
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
Retours
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.