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.
Perform atomic addition on one column. The column must be of type Long. This function allows multiple sessions to update the same record concurrently without conflicts.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Function EscrowUpdate ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
columnid As JET_COLUMNID, _
delta As Integer _
) As Integer
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim columnid As JET_COLUMNID
Dim delta As Integer
Dim returnValue As Integer
returnValue = Api.EscrowUpdate(sesid, _
tableid, columnid, delta)
public static int EscrowUpdate(
JET_SESID sesid,
JET_TABLEID tableid,
JET_COLUMNID columnid,
int delta
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
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: System.Int32The delta to apply to the column.
Return value
Type: System.Int32
The current value of the column as stored in the database (versioning is ignored).
Remarks
This method wraps JetEscrowUpdate(JET_SESID, JET_TABLEID, JET_COLUMNID, [], Int32, [], Int32, Int32, EscrowUpdateGrbit).