共用方式為


IRowsetNotify.OnFieldChange 方法

定義

告知消費者,資料行值的任何變更。

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

參數

rowset
IRowset

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

hRow
Int32

資料行值已變更之資料列的控制代碼。

cColumns
Int32

rgColumns 中的資料行計數。

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

適用於