IAspectRepositoryService.HasAspect Method |
Determines whether an aspect of a given type has been applied to a given declaration.
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
bool HasAspect( Object declaration, Type aspectType )
Parameters
- declaration
- Type: System.Object
The declaration on which the presence of the aspect must be checked. - aspectType
- Type: System.Type
The type of aspect.
Return Value
Type: Booleantrue if an aspect of type aspectType has been applied to declaration, otherwise false.