PropertyDescriptor.OnValueChanged(Object, EventArgs) 方法

定义

引发已实现的 ValueChanged 事件。Raises the ValueChanged event that you implemented.

protected:
 virtual void OnValueChanged(System::Object ^ component, EventArgs ^ e);
protected virtual void OnValueChanged (object component, EventArgs e);
abstract member OnValueChanged : obj * EventArgs -> unit
override this.OnValueChanged : obj * EventArgs -> unit
Protected Overridable Sub OnValueChanged (component As Object, e As EventArgs)

参数

component
Object

引发事件的对象。The object that raises the event.

e
EventArgs

包含事件数据的 EventArgsAn EventArgs that contains the event data.

注解

当属性值已更改时,应由属性描述符实现调用此方法。This method should be called by your property descriptor implementation when the property value has changed.

适用于