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.]
Détermine si un attribut est 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 bool HasAttribute( this ICustomAttributeProvider reflectionObject, Type attributeType ) |
Visual Basic (Declaration) |
---|
<ExtensionAttribute> _ Public Shared Function HasAttribute ( _ reflectionObject As ICustomAttributeProvider, _ attributeType As Type _ ) As Boolean |
Visual C++ |
---|
[ExtensionAttribute] public: static bool HasAttribute( ICustomAttributeProvider^ reflectionObject, Type^ attributeType ) |
Parameters
- reflectionObject
- Type: System.Reflection..::.ICustomAttributeProvider
L'objet de réflexion à vérifier
- attributeType
- Type: System..::.Type
Le type de l'attribut à rechercher