Lock.WebLock() Method

Lock the observatory on behalf of the requesting user

Syntax

Lock.WebLock(Session)

The method syntax has these parts:

Part Description
Session (Object) the ASP session object for the current user
Return (Boolean) True if the lock was acquired, else False

Remarks

If the observatory is already locked by another user, this method returns False. In this case, you can tell what user has the observatory locked via the Lock.Owner property.