The DatabaseObjectLockController type exposes the following members.

Constructors

  Name Description
Public method DatabaseObjectLockController
Initializes a new instance of the DatabaseObjectLockController class

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Lock
Locks an object. Throws an exception if the object is already locked. Throws an exception if the object is not been saved. Because it is possible that between calling IsLocked and calling Lock another user may have locked the object. Therefore, it is recommended calling Lock and then trapping the Exceptions.ObjectAlreadyExistsException to determine whether the object is already locked.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method UnLock
UnLocks this object. Throws an exception if the object is not locked by the current user or the object has not been saved.
Public method UnlockAll
Provides a means by which to ensure all locks have been removed for this user in situations where an unexpected exception occurs and/or the user logs out of system.

Properties

  Name Description
Public property IsLocked
Returns whether the object is locked.
Public property IsLockedByCurrentUser
Returns whether the object is locked by the current user. Specifically, the user that was specified in the constructor.
Public property LockedByUserID
Returns the user ID that has the object locked. Throws an exception if the object is not locked.

See Also