QuestionEventHandler 代理人

定義

表示將處理 CancelRowEditRowDirtyStateNeeded 事件或 DataGridView 事件的方法。

public delegate void QuestionEventHandler(System::Object ^ sender, QuestionEventArgs ^ e);
public delegate void QuestionEventHandler(object sender, QuestionEventArgs e);
public delegate void QuestionEventHandler(object? sender, QuestionEventArgs e);
type QuestionEventHandler = delegate of obj * QuestionEventArgs -> unit
Public Delegate Sub QuestionEventHandler(sender As Object, e As QuestionEventArgs)

參數

sender
Object

事件的來源。

e
QuestionEventArgs

QuestionEventArgs,其中包含事件資料。

備註

建立 QuestionEventHandler 委派時,必須識別處理事件的方法。 若要使事件與您的事件處理常式產生關聯,請將委派的執行個體 (Instance) 加入至事件。 除非您移除委派,否則每當事件發生時就會呼叫事件處理常式。 如需事件處理常式委派的詳細資訊,請參閱 處理和引發事件

在 控制項中 DataGridView 實作虛擬模式時,會使用此委派。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於

另請參閱