Documentation de Dvp.Net. Forum : http://www.developpez.net/forums/f1239/applications/projets/projets-heberges/dvp-net/
Assembly: Developpez.Dotnet (in Developpez.Dotnet.dll) Version: 1.0.0.0 (1.0.0.0)
[Ceci est une documentation préliminaire, sous réserve de modification.]
Récupère un attribut appliqué à un objet de réflexion.
Namespace:
Developpez.Dotnet.ReflectionAssembly: Developpez.Dotnet (in Developpez.Dotnet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Attribute GetAttribute( this ICustomAttributeProvider reflectionObject, Type attributeType ) |
Visual Basic (Declaration) |
---|
<ExtensionAttribute> _ Public Shared Function GetAttribute ( _ reflectionObject As ICustomAttributeProvider, _ attributeType As Type _ ) As Attribute |
Visual C++ |
---|
[ExtensionAttribute] public: static Attribute^ GetAttribute( ICustomAttributeProvider^ reflectionObject, Type^ attributeType ) |
Parameters
- reflectionObject
- Type: System.Reflection..::.ICustomAttributeProvider
L'objet de réflexion dont on veut récupérer un attribut
- attributeType
- Type: System..::.Type
Le type de l'attribut recherché