Open sandboxFocus

Method AddHandler

AddHandler(object, Action<string>)

Adds a handler to the PropertyChanging event.

Declaration
public abstract Delegate AddHandler(object instance, Action<string> handler)
Parameters
Type Name Description
object instance

The instance.

Action<string> handler

The handler delegate that receives the property name as an argument.

Returns
Type Description
Delegate

The Delegate that was registered to the event, or null if instance does not implement the represented interface.

Remarks

An implementation should never return null. Instead, it should return the result of this.Next.AddHandler.