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

IEventBinding.RemoveHandler Method

RemoveHandler(ref Object, Delegate)

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

Declaration
void RemoveHandler(ref object instance, Delegate handler)
Parameters
Type Name Description
System.Object instance

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

System.Delegate handler

Handler to be removed from the event.

Remarks

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.