Locks the database record associated with this object by selecting and locking the row in the database. Supported in Microsoft SQLServer, Pervasive and MySQL. The record lock is released when the transaction is committed or rolled back. Throws an exception if not in transaction mode. Returns the field values from the record that has been locked.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
protected SQLFieldValues LockRecord()
Visual Basic
Protected Function LockRecord As SQLFieldValues
Visual C++
protected:
SQLFieldValues^ LockRecord()

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.DatabaseObject.LockRecord"]

See Also