CompileTimeValidate(object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
Declaration
public bool CompileTimeValidate(object target)
Parameters
Type | Name | Description |
---|---|---|
object | target | Target element. |
Returns
Type | Description |
---|---|
bool |
|
Implements
Remarks
The implementation of this method is expected to emit an error message
or an exception of type InvalidAnnotationException in case of error. Only returning false
causes the aspect
to be silently ignored.