Api.JetEscrowUpdate 方法
在一個資料行上執行不可部分完成的加法作業。 此函式可讓多個會話同時更新相同的記錄,而不會發生衝突。 另請參閱 EscrowUpdate (JET_SESID、JET_TABLEID、JET_COLUMNID、Int32) 。
Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'Declaration
Public Shared Sub JetEscrowUpdate ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
columnid As JET_COLUMNID, _
delta As Byte(), _
deltaSize As Integer, _
previousValue As Byte(), _
previousValueLength As Integer, _
<OutAttribute> ByRef actualPreviousValueLength As Integer, _
grbit As EscrowUpdateGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim columnid As JET_COLUMNID
Dim delta As Byte()
Dim deltaSize As Integer
Dim previousValue As Byte()
Dim previousValueLength As Integer
Dim actualPreviousValueLength As Integer
Dim grbit As EscrowUpdateGrbitApi.JetEscrowUpdate(sesid, tableid, _
columnid, delta, deltaSize, previousValue, _
previousValueLength, actualPreviousValueLength, _
grbit)
public static void JetEscrowUpdate(
JET_SESID sesid,
JET_TABLEID tableid,
JET_COLUMNID columnid,
byte[] delta,
int deltaSize,
byte[] previousValue,
int previousValueLength,
out int actualPreviousValueLength,
EscrowUpdateGrbit grbit
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。 會話必須位於交易中。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID要更新的資料指標。
columnid
類型: Microsoft.Isam.Esent.Interop.JET_COLUMNID要更新的資料行。 這必須是可委付可更新的資料行。
delta
類型: []包含附加元件的緩衝區。
deltaSize
類型: System.Int32附加元件的大小。
previousValue
類型: []將接收資料行目前值的輸出緩衝區。 這個緩衝區可以是 Null。
previousValueLength
類型: System.Int32previousValue 緩衝區的大小。
actualPreviousValueLength
類型: System.Int32傳回 previousValue 的實際大小。
grbit
類型: Microsoft.Isam.Esent.Interop.EscrowUpdateGrbitEscrow 更新選項。