DefaultGeneratorDesigner.OnInputChangeValidation 方法
当设计器输入属性的值更改时,会调用此方法。 调用以验证该设计器。 在引发 OnInputValueChanged 事件前调用此方法。
命名空间: Microsoft.Data.Schema.Tools.DataGenerator
程序集: Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)
语法
声明
Public Overridable Sub OnInputChangeValidation ( _
sender As Object, _
eventArgs As InputChangingEventArgs _
)
public virtual void OnInputChangeValidation(
Object sender,
InputChangingEventArgs eventArgs
)
public:
virtual void OnInputChangeValidation(
Object^ sender,
InputChangingEventArgs^ eventArgs
)
abstract OnInputChangeValidation :
sender:Object *
eventArgs:InputChangingEventArgs -> unit
override OnInputChangeValidation :
sender:Object *
eventArgs:InputChangingEventArgs -> unit
public function OnInputChangeValidation(
sender : Object,
eventArgs : InputChangingEventArgs
)
参数
- sender
类型:System.Object
启动事件的对象。
- eventArgs
类型:Microsoft.Data.Schema.Tools.DataGenerator.InputChangingEventArgs
一个 InputChangingEventArgs 对象。
实现
IDesigner.OnInputChangeValidation(Object, InputChangingEventArgs)
备注
引发事件时会通过委托调用事件处理程序。 有关更多信息,请参见 引发事件。
OnInputChangeValidation 方法还允许派生类对事件进行处理而不必附加委托。 这是在派生类中处理事件的首选技术。
对继承者的说明
在派生类中重写 OnInputChangeValidation 时,请确保调用基类的 OnInputChangeValidation 方法,以使注册的委托接收该事件。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Data.Schema.Tools.DataGenerator 命名空间
OnInputChangeValidation