PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Notify­Property­Changing­Adapter Class / Notify­Property­Changing­Adapter Methods / Notify­Property­Changing­Adapter.​Remove­Handler Method

NotifyPropertyChangingAdapter.RemoveHandler Method

Removes a handler from PropertyChanging event.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public abstract bool RemoveHandler(
	Object instance,
	Delegate handler
)

Parameters

instance
Type: System.Object
Instance.
handler
Type: System.Delegate
Delegate that was registered to the event.

Return Value

Type: Boolean
true if instance implements the represented interface, false otherwise.
Remarks

An implementation should never return false, instead it should return the result of this.Next.RemoveHandler.

See Also