DynamicValidatorEventArgs DynamicValidatorEventArgs DynamicValidatorEventArgs DynamicValidatorEventArgs Class

定義

為包含事件資料之 DynamicValidator 類別的基底類別 (Base Class)。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
繼承
DynamicValidatorEventArgsDynamicValidatorEventArgsDynamicValidatorEventArgsDynamicValidatorEventArgs

備註

DynamicValidator類別會攔截從 LINQ to SQL 類別或資料模型中的 Entity Framework 方法擲回的例外狀況。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(Exception, DynamicDataSourceOperation) DynamicValidatorEventArgs(Exception, DynamicDataSourceOperation) DynamicValidatorEventArgs(Exception, DynamicDataSourceOperation)

使用發生的例外狀況和造成例外狀況的資料來源作業,初始化 DynamicValidatorEventArgs 類別的新執行個體 (Instance)。Initializes a new instance of the DynamicValidatorEventArgs class, using the exception that occurred and the data source operation that caused the exception.

屬性

Exception Exception Exception Exception

取得在資料來源作業事件期間發生的例外狀況。Gets the exception that occurs during a data source operation event.

Operation Operation Operation Operation

取得 DynamicValidator 類別中造成例外狀況的資料來源作業。Gets the data source operation that caused an exception in the DynamicValidator class.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於