EventValidation.ValidateEventInterceptionAspect Method |
Returns true if the target event can be intercepted by an event interception aspect or advice. If it can't, emits an error message.
Namespace: PostSharp.Sdk.AspectWeaver.AspectWeavers
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static bool ValidateEventInterceptionAspect( EventDeclaration target, string aspectOrAdviceName )
Parameters
- target
- Type: PostSharp.Sdk.CodeModel.EventDeclaration
The event to which an aspect or advice is applied. - aspectOrAdviceName
- Type: System.String
Name of the aspect or advice, for an error message.
Return Value
Type: Boolean[Missing <returns> documentation for "M:PostSharp.Sdk.AspectWeaver.AspectWeavers.EventValidation.ValidateEventInterceptionAspect(PostSharp.Sdk.CodeModel.EventDeclaration,System.String)"]