Overwrite() public method

Overwrites the record of the current item
This method wraps the native ups_cursor_overwrite function.
This function overwrites the record of the current item.
/// /// /// if the Cursor does not point to any item /// ///
public Overwrite ( byte record ) : void
record byte
return void
示例#1
0
 private void Overwrite()
 {
     Cursor c = new Cursor(db);
     byte[] k = new byte[5];
     byte[] r1 = new byte[5]; r1[0] = 1;
     byte[] r2 = new byte[5]; r2[0] = 2;
     db.Insert(k, r1);
     c.MoveFirst();
     byte[] f = c.GetRecord();
     checkEqual(r1, f);
     c.Overwrite(r2);
     byte[] g = c.GetRecord();
     checkEqual(r2, g);
 }