次の方法で共有


LockObject (Role Interface)

ms133293.note(ja-jp,SQL.90).gifメモ :
  この機能は、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)

ヘルプおよび情報

SQL Server 2005 の参考資料の入手