IRowsetNotify.OnFieldChange Method

Definition

Notifies the consumer of any change to the value of a column.

public:
 int OnFieldChange(Microsoft::VisualBasic::Compatibility::VB6::IRowset ^ rowset, int hRow, int cColumns, cli::array <int> ^ rgColumns, int dbReason, int eventPhase, int fCantDeny);
public int OnFieldChange (Microsoft.VisualBasic.Compatibility.VB6.IRowset rowset, int hRow, int cColumns, int[] rgColumns, int dbReason, int eventPhase, int fCantDeny);
abstract member OnFieldChange : Microsoft.VisualBasic.Compatibility.VB6.IRowset * int * int * int[] * int * int * int -> int
Public Function OnFieldChange (rowset As IRowset, hRow As Integer, cColumns As Integer, rgColumns As Integer(), dbReason As Integer, eventPhase As Integer, fCantDeny As Integer) As Integer

Parameters

rowset
IRowset

A pointer to the rowset, because the consumer may be receiving notifications from multiple rowsets and this identifies which one is calling.

hRow
Int32

The handle of the row in which the column value was changed.

cColumns
Int32

The count of columns in rgColumns.

rgColumns
Int32[]

An array of columns in the row for which the value was changed.

dbReason
Int32

The reason for the change, as indicated by the value of DBREASON.

eventPhase
Int32

The phase of this notification.

fCantDeny
Int32

When this flag is set to true, the consumer cannot veto the event by returning S_FALSE because the provider cannot undo the event.

Returns

An Integer representing the result.

Remarks

Note

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. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to