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#
public SQLFieldValues ObjectLockRecord(
	IDatabaseObjects objCollection,
	IDatabaseObject objItem
)
Visual Basic
Public Function ObjectLockRecord ( _
	objCollection As IDatabaseObjects, _
	objItem As IDatabaseObject _
) As SQLFieldValues
Visual C++
public:
SQLFieldValues^ ObjectLockRecord(
	IDatabaseObjects^ objCollection, 
	IDatabaseObject^ objItem
)

Parameters

objCollection
Type: DatabaseObjects..::..IDatabaseObjects

[Missing <param name="objCollection"/> documentation for "M:DatabaseObjects.Database.ObjectLockRecord(DatabaseObjects.IDatabaseObjects,DatabaseObjects.IDatabaseObject)"]

objItem
Type: DatabaseObjects..::..IDatabaseObject

[Missing <param name="objItem"/> documentation for "M:DatabaseObjects.Database.ObjectLockRecord(DatabaseObjects.IDatabaseObjects,DatabaseObjects.IDatabaseObject)"]

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.Database.ObjectLockRecord(DatabaseObjects.IDatabaseObjects,DatabaseObjects.IDatabaseObject)"]

See Also