PropertyDescriptor.AddValueChanged(Object, EventHandler) 方法

定义

使其他对象在此属性更改时能得到通知。Enables other objects to be notified when this property changes.

public:
 virtual void AddValueChanged(System::Object ^ component, EventHandler ^ handler);
public virtual void AddValueChanged (object component, EventHandler handler);
abstract member AddValueChanged : obj * EventHandler -> unit
override this.AddValueChanged : obj * EventHandler -> unit
Public Overridable Sub AddValueChanged (component As Object, handler As EventHandler)

参数

component
Object

为其添加处理程序的组件。The component to add the handler for.

handler
EventHandler

要作为侦听器添加的委托。The delegate to add as a listener.

例外

componenthandlernullcomponent or handler is null.

适用于