IRowsetNotify.OnRowsetChange(IRowset, Int32, Int32, Int32) 方法

定義

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

public:
 int OnRowsetChange(Microsoft::VisualBasic::Compatibility::VB6::IRowset ^ rowset, int dbReason, int eventPhase, int fCantDeny);
public int OnRowsetChange (Microsoft.VisualBasic.Compatibility.VB6.IRowset rowset, int dbReason, int eventPhase, int fCantDeny);
abstract member OnRowsetChange : Microsoft.VisualBasic.Compatibility.VB6.IRowset * int * int * int -> int
Public Function OnRowsetChange (rowset As IRowset, dbReason As Integer, eventPhase As Integer, fCantDeny As Integer) As Integer

參數

rowset
IRowset

資料列集的指標,因為消費者可能會收到來自多個資料列集的通知,而這個指標可以識別是哪一個在呼叫。

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 實作有顯著差異時,才會需要這些函式和物件。

適用於