LockObject (Role Interface)
Observação |
---|
Esse recurso será removido na próxima versão do Microsoft SQL Server. Não utilize esse recurso em desenvolvimentos novos e modifique, assim que possível, os aplicativos que atualmente o utilizam. |
The LockObject method of the Role interface locks a role object to prevent multiple users from concurrently changing the object.
Applies To:clsDatabaseRole
Sintaxe
object.LockObject(ByVal LockType As OlapLockTypes, ByVal LockDescription As String)
Parâmetros
object
The object to lock.LockType
One of the lock types defined in the OlapLockTypes enumeration. Because a Role object has no dependent objects and cannot be processed, the only valid options for LockType are olapLockRead and olapLockWrite. For more information, see OlapLockTypes.LockDescription
A string containing the description of the lock, available to other applications attempting to obtain a lock.
Consulte também