SetLock method 
Locks or unlocks the site or community. 
Syntax
 
C++
HRESULT 
 SetLock ( 
   ERULockStatus 
 Lock, 
   BSTR LockMessage) 
 
Scripting languages
Object.SetLock ( 
   Lock as ERULockStatus, 
   LockMessage as 
 String) |  
 
Parameters
 
Lock
The lock status you want to set, as an ERULockStatus 
 enumeration value. At present, the only ERULockStatus member that is valid 
 for a community is erLockAdminOnly. 
LockMessage
An optional message you can supply with the lock status. 
Return value
 
C++
The return code.  | 
Scripting languages
None.   |  
  | 
 Home 
 
Applies to 
IERUCommunity 
IERUSiteServer  |