IRowsetNotify.OnFieldChange 方法

定義

通知消費者欄位值的任何變動。

public:
 int OnFieldChange(Microsoft::VisualBasic::Compatibility::VB6::IRowset ^ rowset, int hRow, int cColumns, cli::array <int> ^ rgColumns, int dbReason, int eventPhase, int fCantDeny);
public int OnFieldChange(Microsoft.VisualBasic.Compatibility.VB6.IRowset rowset, int hRow, int cColumns, int[] rgColumns, int dbReason, int eventPhase, int fCantDeny);
abstract member OnFieldChange : Microsoft.VisualBasic.Compatibility.VB6.IRowset * int * int * int[] * int * int * int -> int
Public Function OnFieldChange (rowset As IRowset, hRow As Integer, cColumns As Integer, rgColumns As Integer(), dbReason As Integer, eventPhase As Integer, fCantDeny As Integer) As Integer

參數

rowset
IRowset

指向該列集的指標,因為消費者可能同時收到多個列集的通知,這可辨識出哪一個列集在呼叫。

hRow
Int32

欄位值被更改的那一列的handle。

cColumns
Int32

欄位 rgColumns的數量。

rgColumns
Int32[]

一列中數值被更改的欄位陣列。

dbReason
Int32

變化的原因,由 的 DBREASON值所表示。

eventPhase
Int32

此通知階段。

fCantDeny
Int32

當此旗標設為 true時,消費者無法透過回傳 S_FALSE 否決事件,因為提供者無法撤銷該事件。

傳回

代表 Integer 結果。

備註

Note

命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

適用於