IRowsetNotify.OnRowChange 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
通知消費者該列的首次變更或影響整列的任何變更。
public:
int OnRowChange(Microsoft::VisualBasic::Compatibility::VB6::IRowset ^ rowset, int cRows, cli::array <int> ^ rghRows, int dbReason, int eventPhase, int fCantDeny);
public int OnRowChange(Microsoft.VisualBasic.Compatibility.VB6.IRowset rowset, int cRows, int[] rghRows, int dbReason, int eventPhase, int fCantDeny);
abstract member OnRowChange : Microsoft.VisualBasic.Compatibility.VB6.IRowset * int * int[] * int * int * int -> int
Public Function OnRowChange (rowset As IRowset, cRows As Integer, rghRows As Integer(), dbReason As Integer, eventPhase As Integer, fCantDeny As Integer) As Integer
參數
- rowset
- IRowset
指向該列集的指標,因為消費者可能同時收到多個列集的通知,這可辨識出哪一個列集在呼叫。
- cRows
- Int32
在 中 的 行 rghRows數 。
- rghRows
- Int32[]
一組正在變動的列的handle。
- 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 實作有顯著差異時,才需要使用這些工具。