[!참고] 이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
The LockObject method of the Role interface locks a role object to prevent multiple users from concurrently changing the object.
Applies To:clsDatabaseRole
구문
object.LockObject(ByVal LockType As OlapLockTypes, ByVal LockDescription As String)
매개 변수
- 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.
참고 항목
참조
OlapLockTypes
UnlockObject (Role Interface)
LockObject (MDStore Interface)