EventLevelAspect.CompileTimeValidate Method (EventInfo)
Method invoked at build time to ensure that the aspect has been applied to the right target.
Assembly: PostSharp (in PostSharp.dll) Version: 126.96.36.199 (188.8.131.52)
public virtual bool CompileTimeValidate( EventInfo targetEvent )
- Type: System.Reflection.EventInfo
Event to which the aspect has been applied
Return ValueType: Boolean
true if the aspect was applied to an acceptable event, otherwise false.
The implementation of this method is expected to emit an error message (see MessageSource) or an exception in case of error. Returning false without emitting an error message or exception causes the aspect to be silently ignored.