PostSharp//API Reference/Post­Sharp.​Aspects/IEvent­Interception­Aspect/On­Add­Handler
Open sandboxFocus

Method OnAddHandler

OnAddHandler(EventInterceptionArgs)

Method invoked instead of the Add semantic of the event to which the current aspect is applied, i.e. when a new delegate is added to this event.

Declaration
[RequiresEventInterceptionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
void OnAddHandler(EventInterceptionArgs args)
Parameters
Type Name Description
EventInterceptionArgs args

Handler arguments.