IRowsetNotify.OnRowChange(IRowset, Int32, Int32[], Int32, Int32, Int32) 方法

定义

将对行的第一个更改或影响整个行的任何更改通知给使用方。Notifies the consumer of the first change to a row or of any change that affects the entire row.

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

指向行集合的指针,由于使用方可能从多个行集合接收通知,所以此指针标识正在调用的行集合。A pointer to the rowset, because the consumer may be receiving notifications from multiple rowsets and this identifies which one is calling.

cRows
Int32

rghRows 中行句柄的计数。The count of row handles in rghRows.

rghRows
Int32[]

正在更改的行的句柄的数组。An array of handles of rows that are changing.

dbReason
Int32

DBREASON 的值指示的更改原因。The reason for the change, as indicated by the value of DBREASON.

eventPhase
Int32

此通知的阶段。The phase of this notification.

fCantDeny
Int32

将此标志设置为 true 时,使用方将无法通过返回 S_FALSE 来禁止该事件,因为提供程序无法撤消该事件。When this flag is set to true, the consumer cannot veto the event by returning S_FALSE because the provider cannot undo the event.

返回

Int32

一个表示结果的 IntegerAn Integer representing the result.

注解

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于