PostSharpAPI ReferencePost­Sharp.​AspectsIEvent­BindingInvoke­Handler
Open sandboxFocus

IEventBinding.InvokeHandler Method

InvokeHandler(ref Object, Delegate, Arguments)

Invoke the Invoke semantic on the next node in the chain of invocation.

object InvokeHandler(ref object instance, Delegate handler, Arguments arguments)
Type Name Description
Object instance

Target instance on which the event is defined (null if the event is static).

Delegate handler

Handler to be removed from the event.

Arguments arguments

Arguments with which the handler should be invoked.

Type Description

The value returned by the handler.


The instance parameter is passed by reference so that instance methods of value types ( struct in C#) are allowed to change the value of the instance.


The Invoke Event Handler semantic is different from normal event firing. Indeed, when you fire an event, all handlers that were added to this event are fired. However, the current method invokes only a single handler: the one passed to the handler parameter.