The DatabaseObjectLockController type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DatabaseObjectLockController |
Initializes a new instance of the DatabaseObjectLockController class
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
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.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
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.
|
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
ToString | (Inherited from Object.) | |
UnLock |
UnLocks this object. Throws an exception if the object is not locked by the current
user or the object has not been saved.
|
|
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 | |
---|---|---|
IsLocked |
Returns whether the object is locked.
|
|
IsLockedByCurrentUser |
Returns whether the object is locked by the current user. Specifically, the user that was specified
in the constructor.
|
|
LockedByUserID |
Returns the user ID that has the object locked.
Throws an exception if the object is not locked.
|