public static CursorOverwrite ( |
||
handle | ||
data | byte | |
flags | int | |
Результат | int |
/// <summary> /// Overwrites the record of the current item /// </summary> /// <remarks> /// This method wraps the native ups_cursor_overwrite function. /// <br /> /// This function overwrites the record of the current item. /// </remarks> /// <exception cref="DatabaseException"> /// <list type="bullet"> /// <item><see cref="UpsConst.UPS_CURSOR_IS_NIL"/> /// if the Cursor does not point to any item</item> /// </list> /// </exception> public void Overwrite(byte[] record) { int st; lock (db) { st = NativeMethods.CursorOverwrite(handle, record, 0); } if (st != 0) { throw new DatabaseException(st); } }