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 实现明显不同时,它们才是必需的。

适用于