Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Performs an atomic addition operation on one column. This function allows multiple sessions to update the same record concurrently without conflicts. Also see EscrowUpdate(JET_SESID, JET_TABLEID, JET_COLUMNID, Int32).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use. The session must be in a transaction.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to update.
columnid
Type: Microsoft.Isam.Esent.Interop.JET_COLUMNIDThe column to update. This must be an escrow updatable column.
delta
Type: []The buffer containing the addend.
deltaSize
Type: System.Int32The size of the addend.
previousValue
Type: []An output buffer that will receive the current value of the column. This buffer can be null.
previousValueLength
Type: System.Int32The size of the previousValue buffer.
actualPreviousValueLength
Type: System.Int32Returns the actual size of the previousValue.
grbit
Type: Microsoft.Isam.Esent.Interop.EscrowUpdateGrbitEscrow update options.