DynamicValidatorEventArgs 类

定义

包含事件数据的 DynamicValidator 类的基类。Base class for DynamicValidator classes that contain event data.

public ref class DynamicValidatorEventArgs : EventArgs
public class DynamicValidatorEventArgs : EventArgs
type DynamicValidatorEventArgs = class
    inherit EventArgs
Public Class DynamicValidatorEventArgs
Inherits EventArgs
继承
DynamicValidatorEventArgs

注解

DynamicValidator类从数据模型中的 LINQ to SQL 类或实体框架方法中捕获引发的异常。The DynamicValidator class catches exceptions thrown from LINQ to SQL classes or from Entity Framework methods in a data model. 此类不包含事件数据。This class does not contain event data. 当引发事件时, 它由未将状态信息传递给事件处理程序的事件使用。It is used by events that do not pass state information to an event handler when an event is raised. 如果事件处理程序需要状态信息, 则必须从此类创建派生类来保存数据。If the event handler requires state information, you must create a derived class from this class to hold the data.

构造函数

DynamicValidatorEventArgs(Exception, DynamicDataSourceOperation)

使用发生的异常和引发异常的数据源操作初始化 DynamicValidatorEventArgs 类的新实例。Initializes a new instance of the DynamicValidatorEventArgs class, using the exception that occurred and the data source operation that caused the exception.

属性

Exception

获取在数据源操作事件期间发生的异常。Gets the exception that occurs during a data source operation event.

Operation

获取在 DynamicValidator 类中引发异常的数据源操作。Gets the data source operation that caused an exception in the DynamicValidator class.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于