IRowsetNotify.OnRowChange 方法

定義

告知消費者,資料列的第一個變更或影響整個資料列的任何變更。

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[]

所要變更之資料列的控制代碼陣列。

dbReason
Int32

DBREASON 的值所代表的變更原因。

eventPhase
Int32

此通知的階段。

fCantDeny
Int32

當這個旗標設定為 true 時,消費者無法傳回 S_FALSE 以否決事件,因為提供者無法復原事件。

傳回

Integer,表示結果。

備註

注意

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

適用於