PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Aspect­Weavers Namespace / Event­Validation Class / Event­Validation Methods / Event­Validation.​Validate­Event­Interception­Aspect Method

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: 6.10.10.0 (6.10.10.0)
Syntax
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)"]

See Also