InputChangingEventArgs 类

为在用户更改输入属性时所发生的验证事件提供数据。

继承层次结构

System.Object
  System.EventArgs
    Microsoft.Data.Schema.Tools.DataGenerator.InputChangingEventArgs

命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)

语法

声明
<CLSCompliantAttribute(True)> _
Public NotInheritable Class InputChangingEventArgs _
    Inherits EventArgs
[CLSCompliantAttribute(true)]
public sealed class InputChangingEventArgs : EventArgs
[CLSCompliantAttribute(true)]
public ref class InputChangingEventArgs sealed : public EventArgs
[<Sealed>]
[<CLSCompliantAttribute(true)>]
type InputChangingEventArgs =  
    class
        inherit EventArgs
    end
public final class InputChangingEventArgs extends EventArgs

InputChangingEventArgs 类型公开以下成员。

构造函数

  名称 说明
公共方法 InputChangingEventArgs 使用所提供的输入数组、更改的输入以及新值初始化 InputChangingEventArgs 类的新实例。

页首

属性

  名称 说明
公共属性 Input 获取其值已更改的输入属性。
公共属性 Inputs 获取一个只读集合,该集合中包含数据生成器的当前所有输入属性。
公共属性 Value 获取要赋给输入属性的新值。

页首

方法

  名称 说明
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

InputChangingEventArgs 为下列事件提供数据:

若要取消赋给属性的新值,请在上述方法之一中引发 InputValidationException

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema.Tools.DataGenerator 命名空间

OnInputChangeValidation

OnInputChangeValidation

OnInputChangeValidation

InputValidationException