DataTable.OnPropertyChanging(PropertyChangedEventArgs) 方法

定义

引发 PropertyChanged 事件。Raises the PropertyChanged event.

protected:
 virtual void OnPropertyChanging(System::ComponentModel::PropertyChangedEventArgs ^ pcevent);
protected public:
 virtual void OnPropertyChanging(System::ComponentModel::PropertyChangedEventArgs ^ pcevent);
protected virtual void OnPropertyChanging (System.ComponentModel.PropertyChangedEventArgs pcevent);
protected internal virtual void OnPropertyChanging (System.ComponentModel.PropertyChangedEventArgs pcevent);
abstract member OnPropertyChanging : System.ComponentModel.PropertyChangedEventArgs -> unit
override this.OnPropertyChanging : System.ComponentModel.PropertyChangedEventArgs -> unit
Protected Overridable Sub OnPropertyChanging (pcevent As PropertyChangedEventArgs)
Protected Friend Overridable Sub OnPropertyChanging (pcevent As PropertyChangedEventArgs)

参数

pcevent
PropertyChangedEventArgs

一个包含事件数据的 PropertyChangedEventArgsA PropertyChangedEventArgs that contains the event data.

注解

引发事件时,将通过委托调用事件处理程序。Raising an event invokes the event handler through a delegate. 有关概述,请参阅处理和引发事件For an overview, see Handling and Raising Events.

继承者说明

当在派生类中重写 OnPropertyChanging(PropertyChangedEventArgs) 时,请确保调用基类的 OnPropertyChanging(PropertyChangedEventArgs) 方法。When overriding OnPropertyChanging(PropertyChangedEventArgs) in a derived class, be sure to call the base class's OnPropertyChanging(PropertyChangedEventArgs) method.

适用于

另请参阅